mirror of https://gitee.com/openkylin/qemu.git
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>
This commit is contained in:
parent
3d74ee7dca
commit
6c608953a5
|
@ -49,6 +49,7 @@ static inline void tco_timer_reload(TCOIORegs *tr)
|
||||||
static inline void tco_timer_stop(TCOIORegs *tr)
|
static inline void tco_timer_stop(TCOIORegs *tr)
|
||||||
{
|
{
|
||||||
tr->expire_time = -1;
|
tr->expire_time = -1;
|
||||||
|
timer_del(tr->tco_timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tco_timer_expired(void *opaque)
|
static void tco_timer_expired(void *opaque)
|
||||||
|
|
Loading…
Reference in New Issue