qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] ARM: hw/exynos4210_mct.c: Fix a bug which hangs Linux kernel.
@ 2012-06-22  7:22 Evgeny Voevodin
  2012-06-22  7:56 ` Peter Crosthwaite
  0 siblings, 1 reply; 3+ messages in thread
From: Evgeny Voevodin @ 2012-06-22  7:22 UTC (permalink / raw)
  To: qemu-devel
  Cc: m.shcherbina, o.ogurtsov, i.mitsyanko, Evgeny Voevodin,
	peter.maydell, kyungmin.park, d.solodkiy, s.vorobiov, m.kozlov

From: Stanislav Vorobiov <s.vorobiov@samsung.com>

After some long period of time Linux kernel hanged due to
ptimer_get_count may return 0 before timer interrupt occurs,
thus, causing FRC to jump back in time

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
---
 hw/exynos4210_mct.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/hw/exynos4210_mct.c b/hw/exynos4210_mct.c
index 7474fcf..7a22b1f 100644
--- a/hw/exynos4210_mct.c
+++ b/hw/exynos4210_mct.c
@@ -376,10 +376,6 @@ static uint64_t exynos4210_gfrc_get_count(Exynos4210MCTGT *s)
 {
     uint64_t count = 0;
     count = ptimer_get_count(s->ptimer_frc);
-    if (!count) {
-        /* Timer event was generated and s->reg.cnt holds adequate value */
-        return s->reg.cnt;
-    }
     count = s->count - count;
     return s->reg.cnt + count;
 }
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-22  8:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-22  7:22 [Qemu-devel] [PATCH] ARM: hw/exynos4210_mct.c: Fix a bug which hangs Linux kernel Evgeny Voevodin
2012-06-22  7:56 ` Peter Crosthwaite
2012-06-22  8:17   ` Evgeny Voevodin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).