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
master
John Crispin 2015-04-21 12:42:42 +00:00
parent 789949fe69
commit 4ed2b35d86
1 changed files with 11 additions and 0 deletions

View File

@ -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;
}