diff options
Diffstat (limited to 'kernel/timer.c')
-rw-r--r-- | kernel/timer.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/timer.c b/kernel/timer.c index 22118342a456..2454172a80d3 100644 --- a/kernel/timer.c +++ b/kernel/timer.c | |||
@@ -1684,11 +1684,14 @@ static int __cpuinit timer_cpu_notify(struct notifier_block *self, | |||
1684 | unsigned long action, void *hcpu) | 1684 | unsigned long action, void *hcpu) |
1685 | { | 1685 | { |
1686 | long cpu = (long)hcpu; | 1686 | long cpu = (long)hcpu; |
1687 | int err; | ||
1688 | |||
1687 | switch(action) { | 1689 | switch(action) { |
1688 | case CPU_UP_PREPARE: | 1690 | case CPU_UP_PREPARE: |
1689 | case CPU_UP_PREPARE_FROZEN: | 1691 | case CPU_UP_PREPARE_FROZEN: |
1690 | if (init_timers_cpu(cpu) < 0) | 1692 | err = init_timers_cpu(cpu); |
1691 | return NOTIFY_BAD; | 1693 | if (err < 0) |
1694 | return notifier_from_errno(err); | ||
1692 | break; | 1695 | break; |
1693 | #ifdef CONFIG_HOTPLUG_CPU | 1696 | #ifdef CONFIG_HOTPLUG_CPU |
1694 | case CPU_DEAD: | 1697 | case CPU_DEAD: |