ramips: fix subtarget kernel version assignment (only mt7621 is ready for now)
[openwrt/openwrt.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 --- a/arch/mips/ralink/cevt-rt3352.c
12 +++ b/arch/mips/ralink/cevt-rt3352.c
13 @@ -69,7 +69,7 @@ static int systick_next_event(unsigned l
14 sdev = container_of(evt, struct systick_device, dev);
15 count = ioread32(sdev->membase + SYSTICK_COUNT);
16 count = (count + delta) % SYSTICK_FREQ;
17 - iowrite32(count + delta, sdev->membase + SYSTICK_COMPARE);
18 + iowrite32(count, sdev->membase + SYSTICK_COMPARE);
19
20 return 0;
21 }