mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
ramips: fix a bug in the cevt code on mt7620
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46038
This commit is contained in:
parent
3cb3da9556
commit
765efbf10e
14
target/linux/ramips/patches-3.18/999-cevt.patch
Normal file
14
target/linux/ramips/patches-3.18/999-cevt.patch
Normal file
@ -0,0 +1,14 @@
|
||||
Index: linux-3.18.16/arch/mips/ralink/cevt-rt3352.c
|
||||
===================================================================
|
||||
--- linux-3.18.16.orig/arch/mips/ralink/cevt-rt3352.c 2015-06-14 09:10:18.544132719 +0200
|
||||
+++ linux-3.18.16/arch/mips/ralink/cevt-rt3352.c 2015-06-18 13:30:04.830117077 +0200
|
||||
@@ -53,8 +53,7 @@
|
||||
|
||||
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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user