aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.18/0063-cevt-rt3352.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-04-21 12:42:42 +0000
committerJohn Crispin <john@openwrt.org>2015-04-21 12:42:42 +0000
commit03dd7b6bdb4706392389c27345f3787974a50289 (patch)
tree4d30d61d9704ca10afe1eb99d4db49c29ba52cde /target/linux/ramips/patches-3.18/0063-cevt-rt3352.patch
parenta34db67857c13a8d05dca71721f3fba7b961e034 (diff)
downloadupstream-03dd7b6bdb4706392389c27345f3787974a50289.tar.gz
upstream-03dd7b6bdb4706392389c27345f3787974a50289.tar.bz2
upstream-03dd7b6bdb4706392389c27345f3787974a50289.zip
ralink: the systick clocksource was calculating a bad bogo mips value
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 45554
Diffstat (limited to 'target/linux/ramips/patches-3.18/0063-cevt-rt3352.patch')
-rw-r--r--target/linux/ramips/patches-3.18/0063-cevt-rt3352.patch11
1 files changed, 11 insertions, 0 deletions
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
index 0000000000..daf8be1360
--- /dev/null
+++ b/target/linux/ramips/patches-3.18/0063-cevt-rt3352.patch
@@ -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;
+ }