cpu/hotplug: Move bringup of secondary CPUs out of smp_init()
[sfrench/cifs-2.6.git] / kernel / cpu.c
index f803678684e9be0cab48febd5b26cf00fbe453ba..4783d811ccf8a4c975cc57a644adfb3879d706c4 100644 (file)
@@ -1298,6 +1298,18 @@ int bringup_hibernate_cpu(unsigned int sleep_cpu)
        return 0;
 }
 
+void bringup_nonboot_cpus(unsigned int setup_max_cpus)
+{
+       unsigned int cpu;
+
+       for_each_present_cpu(cpu) {
+               if (num_online_cpus() >= setup_max_cpus)
+                       break;
+               if (!cpu_online(cpu))
+                       cpu_up(cpu);
+       }
+}
+
 #ifdef CONFIG_PM_SLEEP_SMP
 static cpumask_var_t frozen_cpus;