Fix power management timer overflow handling
commit6deeee13d18ac361450be92e04e3f8f5a9b49160
authorAvi Kivity <avi@qumranet.com>
Wed, 2 Jan 2008 10:52:28 +0000 (2 12:52 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 2 Jan 2008 10:52:28 +0000 (2 12:52 +0200)
tree6b52e2efa371ee8f0cb8a332a52bf6ed3b953ad4
parent18d26ebaa3b9674d05a5e7b3ca1036f49ff16e11
Fix power management timer overflow handling

The PMSTS overflow bit needs to be set each time bit 23 of the pm timer
is toggled.  This means we need to adjust the overflow time every time
we have an overflow.

Taken from qemu patch by TeLeMan in

http://www.mail-archive.com/qemu-devel@nongnu.org/msg14680.html

Signed-off-by: Avi Kivity <avi@qumranet.com>
hw/acpi.c