dbab46791e19107c0b8f85c74068749f972fcd27
[15.05/openwrt.git] / target / linux / ramips / patches-3.18 / 999-cevt.patch
1 Index: linux-3.18.16/arch/mips/ralink/cevt-rt3352.c
2 ===================================================================
3 --- linux-3.18.16.orig/arch/mips/ralink/cevt-rt3352.c   2015-06-14 09:10:18.544132719 +0200
4 +++ linux-3.18.16/arch/mips/ralink/cevt-rt3352.c        2015-06-18 13:30:04.830117077 +0200
5 @@ -53,8 +53,7 @@
6  
7         sdev = container_of(evt, struct systick_device, dev);
8         count = ioread32(sdev->membase + SYSTICK_COUNT);
9 -       count = (count + delta) % SYSTICK_FREQ;
10 -       iowrite32(count, sdev->membase + SYSTICK_COMPARE);
11 +       iowrite32(count + delta, sdev->membase + SYSTICK_COMPARE);
12  
13         return 0;
14  }