192afe4b8a98fd4e323c2f247940204e47f7ed48
[openwrt.git] / target / linux / ramips / patches-3.18 / 999-cevt.patch
1 --- a/arch/mips/ralink/cevt-rt3352.c
2 +++ b/arch/mips/ralink/cevt-rt3352.c
3 @@ -53,8 +53,7 @@ static int systick_next_event(unsigned l
4  
5         sdev = container_of(evt, struct systick_device, dev);
6         count = ioread32(sdev->membase + SYSTICK_COUNT);
7 -       count = (count + delta) % SYSTICK_FREQ;
8 -       iowrite32(count, sdev->membase + SYSTICK_COMPARE);
9 +       iowrite32(count + delta, sdev->membase + SYSTICK_COMPARE);
10  
11         return 0;
12  }