]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/sched.c
[PATCH] cpu hotplug: make cpu_notifier related notifier calls __cpuinit only
[karo-tx-linux.git] / kernel / sched.c
index b8deddb7833a52d2ad0ca4b439f45becea53ee1c..3e57712aefdf5d8e73cf8bbdb98061b1bd32229b 100644 (file)
@@ -4734,8 +4734,9 @@ static void migrate_dead_tasks(unsigned int dead_cpu)
  * migration_call - callback that gets triggered when a CPU is added.
  * Here we can start up the necessary migration thread for the new CPU.
  */
-static int migration_call(struct notifier_block *nfb, unsigned long action,
-                         void *hcpu)
+static int __cpuinit migration_call(struct notifier_block *nfb,
+                       unsigned long action,
+                       void *hcpu)
 {
        int cpu = (long)hcpu;
        struct task_struct *p;
@@ -4805,7 +4806,7 @@ static int migration_call(struct notifier_block *nfb, unsigned long action,
 /* Register at highest priority so that task migration (migrate_all_tasks)
  * happens before everything else.
  */
-static struct notifier_block __devinitdata migration_notifier = {
+static struct notifier_block __cpuinitdata migration_notifier = {
        .notifier_call = migration_call,
        .priority = 10
 };