]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - arch/mips/kernel/cevt-gt641xx.c
[MIPS] time: set clock before clockevent_delta2ns() in GT641xx.
[linux-3.10.git] / arch / mips / kernel / cevt-gt641xx.c
index 155ef81ec2166a075057bc921fd79d3a3f6c553f..c36772631fe0e7b9524fbfe2ad6ed4b6da9435f4 100644 (file)
@@ -131,9 +131,9 @@ static int __init gt641xx_timer0_clockevent_init(void)
 
        cd = &gt641xx_timer0_clockevent;
        cd->rating = 200 + gt641xx_base_clock / 10000000;
+       clockevent_set_clock(cd, gt641xx_base_clock);
        cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd);
        cd->min_delta_ns = clockevent_delta2ns(0x300, cd);
-       clockevent_set_clock(cd, gt641xx_base_clock);
 
        clockevents_register_device(&gt641xx_timer0_clockevent);