Unify alarm deadline computation
commit366c2452b111118abcd0dc5f0cd74c16fd63fb96
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:53:52 +0000 (4 06:53 -0600)
treec7b3559072a17f32b85e79fa3935073d563bab5f
parentbbd9827cc7c83c433bbd1d253b8cd27d56acd071
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>
(cherry picked from commit 4c3d45eb694de3e0bda10841a06ba98be4d569b1)
qemu-timer.c