]> xenbits.xensource.com Git - qemu-xen-4.3-testing.git/commit
timers: use INT64_MAX as max expiration
authorYang Zhang <yang.z.zhang@Intel.com>
Tue, 3 Apr 2012 14:44:48 +0000 (15:44 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 3 Apr 2012 14:44:48 +0000 (15:44 +0100)
commit82db8de16530f016809264d3179823999d702849
tree6758d15bcf0cda18adefee6c4ea7cf24af52961e
parenta5af89a7d40dee39a8836b03504f4076573b26bf
timers: use INT64_MAX as max expiration

Currently, the max expiration time is 2147483647ns(INT32_MAX ns). This
is enough when guest is busy, but when guest is idle, the next timer
will be later than INT32_MAX ns. And those meaningless alarm will harm
the pkg C-state.

PS: Since the overflow will not happen with the expression((delta /
1000) + (delta % 1000 > 0 ? 1 : 0)), so i also removed the comments"
To avoid problems with overflow limit this to 2^32."

Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
vl.c