Unify alarm deadline computation
commit4c3d45eb694de3e0bda10841a06ba98be4d569b1
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 3 Feb 2011 13:49:01 +0000 (3 14:49 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 4 Feb 2011 12:33:26 +0000 (4 06:33 -0600)
treef1232bae6929bc46eb3aac9221c5a6e19a094b5c
parent6ad0a1ed21ecd187dbe3239eb45c3598672af6a8
Unify alarm deadline computation

This patch shows how using the correct formula for
qemu_next_deadline_dyntick can simplify the code of
host_alarm_handler and eliminate useless duplication.

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