openwrtv3/target/linux/ramips/patches-3.18/0066-cevt.patch
John Crispin aa4c6e27b4 ramips: reorder patches
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46659
2015-08-17 06:18:30 +00:00

12 lines
415 B
Diff

--- a/arch/mips/ralink/cevt-rt3352.c
+++ b/arch/mips/ralink/cevt-rt3352.c
@@ -53,8 +53,7 @@ static int systick_next_event(unsigned l
sdev = container_of(evt, struct systick_device, dev);
count = ioread32(sdev->membase + SYSTICK_COUNT);
- count = (count + delta) % SYSTICK_FREQ;
- iowrite32(count, sdev->membase + SYSTICK_COMPARE);
+ iowrite32(count + delta, sdev->membase + SYSTICK_COMPARE);
return 0;
}