more alarm timer cleanup
commit1828be316f6637d43dd4c4f5f32925b17fb8107f
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Mar 2010 10:38:41 +0000 (10 11:38 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 17 Mar 2010 16:14:53 +0000 (17 11:14 -0500)
tree7f81ec21d7d79d00ac301e9a8275c172b0e5e419
parentcd48d7e8f322cdb05692b023b168816ed6306fc4
more alarm timer cleanup

The timer_alarm_pending variable is related to the alarm timer but not
placed in the struct.  Also, in qemu_mod_timer the wrong flag was being
tested: the timer is rearmed in the alarm timer "bottom half", so the
right flag to test there is the "pending" flag.

Finally, I hoisted the NULL checks from alarm_has_dynticks to
host_alarm_handler.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c