[MIPS] Sibyte: Stop timers before programming next even.
[linux-3.10.git] / arch / mips / kernel / cevt-sb1250.c
index 8fbb055376807de1c572dfc1ddc0dee377beecee..63ac3ad462bc61cf2aeafe817a6ea1255c3991a0 100644 (file)
@@ -73,6 +73,7 @@ static int sibyte_next_event(unsigned long delta, struct clock_event_device *cd)
        cfg = IOADDR(A_SCD_TIMER_REGISTER(cpu, R_SCD_TIMER_CFG));
        init = IOADDR(A_SCD_TIMER_REGISTER(cpu, R_SCD_TIMER_INIT));
 
+       __raw_writeq(0, cfg);
        __raw_writeq(delta - 1, init);
        __raw_writeq(M_SCD_TIMER_ENABLE, cfg);