summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorStanislav Vorobiov <s.vorobiov@samsung.com>2012-07-04 10:43:30 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-07-04 10:43:30 +0000
commit2e2aafc0f6c0964b736d81cb7b13a2a1a3d8a564 (patch)
tree079dd241ece9c987ac17a2664654af8b4f0d5cb1 /hw
parent71ea2e016131a9fcde6f1ffd3e0e34a64c21f593 (diff)
downloadqemu-2e2aafc0f6c0964b736d81cb7b13a2a1a3d8a564.tar.gz
ARM: hw/exynos4210_mct.c: Fix a bug which hangs Linux kernel.
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> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/exynos4210_mct.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/exynos4210_mct.c b/hw/exynos4210_mct.c
index 7474fcf802..7a22b1f900 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;
}