ramips: use gic timer as clocksource for mt7621
[openwrt/svn-archive/archive.git] / target / linux / ramips / patches-4.3 / 0012-arch-mips-fix-clock-jitter.patch
1 From 2a7f11a3a569159e97b7c5134c4d1f3f5b253637 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Mon, 7 Dec 2015 17:14:42 +0100
4 Subject: [PATCH 12/53] arch: mips: fix clock jitter
5
6 Signed-off-by: John Crispin <blogic@openwrt.org>
7 ---
8 arch/mips/ralink/cevt-rt3352.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/arch/mips/ralink/cevt-rt3352.c b/arch/mips/ralink/cevt-rt3352.c
12 index b36888c..cecf44f 100644
13 --- a/arch/mips/ralink/cevt-rt3352.c
14 +++ b/arch/mips/ralink/cevt-rt3352.c
15 @@ -69,7 +69,7 @@ static int systick_next_event(unsigned long delta,
16 sdev = container_of(evt, struct systick_device, dev);
17 count = ioread32(sdev->membase + SYSTICK_COUNT);
18 count = (count + delta) % SYSTICK_FREQ;
19 - iowrite32(count + delta, sdev->membase + SYSTICK_COMPARE);
20 + iowrite32(count, sdev->membase + SYSTICK_COMPARE);
21
22 return 0;
23 }
24 --
25 1.7.10.4
26