aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 0047bd9b96aa..fde1a1026359 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -6389,7 +6389,7 @@ static struct notifier_block __cpuinitdata migration_notifier = {
6389 .priority = 10 6389 .priority = 10
6390}; 6390};
6391 6391
6392void __init migration_init(void) 6392static int __init migration_init(void)
6393{ 6393{
6394 void *cpu = (void *)(long)smp_processor_id(); 6394 void *cpu = (void *)(long)smp_processor_id();
6395 int err; 6395 int err;
@@ -6399,7 +6399,10 @@ void __init migration_init(void)
6399 BUG_ON(err == NOTIFY_BAD); 6399 BUG_ON(err == NOTIFY_BAD);
6400 migration_call(&migration_notifier, CPU_ONLINE, cpu); 6400 migration_call(&migration_notifier, CPU_ONLINE, cpu);
6401 register_cpu_notifier(&migration_notifier); 6401 register_cpu_notifier(&migration_notifier);
6402
6403 return err;
6402} 6404}
6405early_initcall(migration_init);
6403#endif 6406#endif
6404 6407
6405#ifdef CONFIG_SMP 6408#ifdef CONFIG_SMP