From dec144f1d10c9e82172bec6f77c68172ff6aa000 Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti Date: Thu, 23 Jul 2009 16:07:04 -0300 Subject: [PATCH] hpet_reset: make it similar to upstream Signed-off-by: Marcelo Tosatti --- hw/hpet.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/hpet.c b/hw/hpet.c index c1837ac018..2bb2057304 100644 --- a/hw/hpet.c +++ b/hw/hpet.c @@ -560,15 +560,13 @@ static void hpet_reset(void *opaque) { s->capability = 0x8086a201ULL; s->capability |= ((HPET_CLK_PERIOD) << 32); s->config = 0ULL; - if (count > 0) { + if (count > 0) /* we don't enable pit when hpet_reset is first called (by hpet_init) * because hpet is taking over for pit here. On subsequent invocations, * hpet_reset is called due to system reset. At this point control must * be returned to pit until SW reenables hpet. */ hpet_enable_pit(); - dprintf("qemu: hpet enabled pit\n"); - } count = 1; } -- 2.11.4.GIT