ralink: the systick clocksource was calculating a bad bogo mips value
authorJohn Crispin <john@openwrt.org>
Tue, 21 Apr 2015 12:42:42 +0000 (12:42 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 21 Apr 2015 12:42:42 +0000 (12:42 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 45554

target/linux/ramips/patches-3.18/0063-cevt-rt3352.patch [new file with mode: 0644]

diff --git a/target/linux/ramips/patches-3.18/0063-cevt-rt3352.patch b/target/linux/ramips/patches-3.18/0063-cevt-rt3352.patch
new file mode 100644 (file)
index 0000000..daf8be1
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/arch/mips/ralink/cevt-rt3352.c
++++ b/arch/mips/ralink/cevt-rt3352.c
+@@ -54,7 +54,7 @@
+       sdev = container_of(evt, struct systick_device, dev);
+       count = ioread32(sdev->membase + SYSTICK_COUNT);
+       count = (count + delta) % SYSTICK_FREQ;
+-      iowrite32(count + delta, sdev->membase + SYSTICK_COMPARE);
++      iowrite32(count, sdev->membase + SYSTICK_COMPARE);
+       return 0;
+ }