aboutsummaryrefslogtreecommitdiff
path: root/hw/acpi/tco.c
diff options
context:
space:
mode:
authorIgor Pavlikevich <ipavlikevich@gmail.com>2017-02-06 17:44:55 +0300
committerMichael Tokarev <mjt@tls.msk.ru>2017-02-28 09:03:39 +0300
commit6c608953a5512b556fd0913d740e932366d6bb5d (patch)
tree719c104adbc6fcc56906756d389183f9c7d76e0b /hw/acpi/tco.c
parent3d74ee7dcae57b93a64737b954d76cf96236a367 (diff)
hw/acpi/tco.c: fix tco timer stop
TCO timer does not actually stop Signed-off-by: Igor Pavlikevich <ipavlikevich@gmail.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/acpi/tco.c')
-rw-r--r--hw/acpi/tco.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/acpi/tco.c b/hw/acpi/tco.c
index 8ce7daf23a..b4adac88cd 100644
--- a/hw/acpi/tco.c
+++ b/hw/acpi/tco.c
@@ -49,6 +49,7 @@ static inline void tco_timer_reload(TCOIORegs *tr)
static inline void tco_timer_stop(TCOIORegs *tr)
{
tr->expire_time = -1;
+ timer_del(tr->tco_timer);
}
static void tco_timer_expired(void *opaque)