aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5c848fd4e461..b946209d9c15 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5272,9 +5272,11 @@ static struct notifier_block __cpuinitdata migration_notifier = {
5272int __init migration_init(void) 5272int __init migration_init(void)
5273{ 5273{
5274 void *cpu = (void *)(long)smp_processor_id(); 5274 void *cpu = (void *)(long)smp_processor_id();
5275 int err;
5275 5276
5276 /* Start one for the boot CPU: */ 5277 /* Start one for the boot CPU: */
5277 migration_call(&migration_notifier, CPU_UP_PREPARE, cpu); 5278 err = migration_call(&migration_notifier, CPU_UP_PREPARE, cpu);
5279 BUG_ON(err == NOTIFY_BAD);
5278 migration_call(&migration_notifier, CPU_ONLINE, cpu); 5280 migration_call(&migration_notifier, CPU_ONLINE, cpu);
5279 register_cpu_notifier(&migration_notifier); 5281 register_cpu_notifier(&migration_notifier);
5280 5282