999-cevt.patch 415 B

123456789101112
  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. sdev = container_of(evt, struct systick_device, dev);
  5. count = ioread32(sdev->membase + SYSTICK_COUNT);
  6. - count = (count + delta) % SYSTICK_FREQ;
  7. - iowrite32(count, sdev->membase + SYSTICK_COMPARE);
  8. + iowrite32(count + delta, sdev->membase + SYSTICK_COMPARE);
  9. return 0;
  10. }