diff options
Diffstat (limited to 'kernel/softlockup.c')
-rw-r--r-- | kernel/softlockup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/softlockup.c b/kernel/softlockup.c index 03e6a2b0b787..50afeb813305 100644 --- a/kernel/softlockup.c +++ b/kernel/softlockup.c | |||
@@ -149,8 +149,9 @@ static struct notifier_block __cpuinitdata cpu_nfb = { | |||
149 | __init void spawn_softlockup_task(void) | 149 | __init void spawn_softlockup_task(void) |
150 | { | 150 | { |
151 | void *cpu = (void *)(long)smp_processor_id(); | 151 | void *cpu = (void *)(long)smp_processor_id(); |
152 | int err = cpu_callback(&cpu_nfb, CPU_UP_PREPARE, cpu); | ||
152 | 153 | ||
153 | cpu_callback(&cpu_nfb, CPU_UP_PREPARE, cpu); | 154 | BUG_ON(err == NOTIFY_BAD); |
154 | cpu_callback(&cpu_nfb, CPU_ONLINE, cpu); | 155 | cpu_callback(&cpu_nfb, CPU_ONLINE, cpu); |
155 | register_cpu_notifier(&cpu_nfb); | 156 | register_cpu_notifier(&cpu_nfb); |
156 | 157 | ||