aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-04-21 12:42:42 +0000
committerJohn Crispin <blogic@openwrt.org>2015-04-21 12:42:42 +0000
commit4ed2b35d8683be5fc5cebb921412373841cd73a3 (patch)
tree1d2a8d7d57c6398688fd8e106426778c8a427d41 /target/linux
parent789949fe69f6540ef3cca716eb34d2a6ea21c188 (diff)
downloadupstream-4ed2b35d8683be5fc5cebb921412373841cd73a3.tar.gz
upstream-4ed2b35d8683be5fc5cebb921412373841cd73a3.tar.bz2
upstream-4ed2b35d8683be5fc5cebb921412373841cd73a3.zip
ralink: the systick clocksource was calculating a bad bogo mips value
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45554 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-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;
+ }