aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/timer.c')
-rw-r--r--kernel/timer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/timer.c b/kernel/timer.c
index d644f4e9ca0c..a2cb1ecb1b28 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -1694,8 +1694,10 @@ static struct notifier_block __cpuinitdata timers_nb = {
1694 1694
1695void __init init_timers(void) 1695void __init init_timers(void)
1696{ 1696{
1697 timer_cpu_notify(&timers_nb, (unsigned long)CPU_UP_PREPARE, 1697 int err = timer_cpu_notify(&timers_nb, (unsigned long)CPU_UP_PREPARE,
1698 (void *)(long)smp_processor_id()); 1698 (void *)(long)smp_processor_id());
1699
1700 BUG_ON(err == NOTIFY_BAD);
1699 register_cpu_notifier(&timers_nb); 1701 register_cpu_notifier(&timers_nb);
1700 open_softirq(TIMER_SOFTIRQ, run_timer_softirq, NULL); 1702 open_softirq(TIMER_SOFTIRQ, run_timer_softirq, NULL);
1701} 1703}