qemu_next_alarm_deadline: check the expire time of a clock only if it is enabled
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 13 Apr 2012 18:35:03 +0000 (19:35 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 26 Apr 2012 18:14:58 +0000 (13:14 -0500)
commit4ffd16fc2900219c8ec8bb288b6fa3dfcae295a7
tree6303172a9e70298b770d4dbf8ae44a89daeeac92
parent5bfb723f07fde2caafa90cb40c102a4e36dfea9e
qemu_next_alarm_deadline: check the expire time of a clock only if it is enabled

Also delta in qemu_next_alarm_deadline is a 64 bit value so set the
default to INT64_MAX instead of INT32_MAX.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-timer.c