From 6c608953a5512b556fd0913d740e932366d6bb5d Mon Sep 17 00:00:00 2001 From: Igor Pavlikevich Date: Mon, 6 Feb 2017 17:44:55 +0300 Subject: hw/acpi/tco.c: fix tco timer stop TCO timer does not actually stop Signed-off-by: Igor Pavlikevich Signed-off-by: Michael Tokarev --- hw/acpi/tco.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw') 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) -- cgit v1.2.3