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