timer: Check failure of timer_cpu_notify() before calling init_timer_stats()
[deliverable/linux.git] / kernel / timer.c
index a71bdfdb51e7a047f0f220816403b5b838e5c5d0..31824ef3eb964b6dc9a9b098dfc462530ed46705 100644 (file)
@@ -1681,9 +1681,9 @@ void __init init_timers(void)
 
        err = timer_cpu_notify(&timers_nb, (unsigned long)CPU_UP_PREPARE,
                               (void *)(long)smp_processor_id());
-       init_timer_stats();
-
        BUG_ON(err != NOTIFY_OK);
+
+       init_timer_stats();
        register_cpu_notifier(&timers_nb);
        open_softirq(TIMER_SOFTIRQ, run_timer_softirq);
 }
This page took 0.026505 seconds and 5 git commands to generate.