qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PATCH] hw/acpi/tco.c: fix tco timer stop


From: Igor Pavlikevich
Subject: [Qemu-trivial] [PATCH] hw/acpi/tco.c: fix tco timer stop
Date: Mon, 6 Feb 2017 17:44:55 +0300

TCO timer does not actually stop

Signed-off-by: Igor Pavlikevich <address@hidden>
---
 hw/acpi/tco.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/acpi/tco.c b/hw/acpi/tco.c
index 8ce7daf..b4adac8 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)
-- 
2.1.4



reply via email to

[Prev in Thread] Current Thread [Next in Thread]