aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/init/main.c b/init/main.c
index b0097d2b63ae..3585f073d636 100644
--- a/init/main.c
+++ b/init/main.c
@@ -408,8 +408,7 @@ static void __init smp_init(void)
408 * Set up the current CPU as possible to migrate to. 408 * Set up the current CPU as possible to migrate to.
409 * The other ones will be done by cpu_up/cpu_down() 409 * The other ones will be done by cpu_up/cpu_down()
410 */ 410 */
411 cpu = smp_processor_id(); 411 set_cpu_active(smp_processor_id(), true);
412 cpu_set(cpu, cpu_active_map);
413 412
414 /* FIXME: This should be done in userspace --RR */ 413 /* FIXME: This should be done in userspace --RR */
415 for_each_present_cpu(cpu) { 414 for_each_present_cpu(cpu) {
@@ -797,6 +796,7 @@ static void run_init_process(char *init_filename)
797 * makes it inline to init() and it becomes part of init.text section 796 * makes it inline to init() and it becomes part of init.text section
798 */ 797 */
799static noinline int init_post(void) 798static noinline int init_post(void)
799 __releases(kernel_lock)
800{ 800{
801 /* need to finish all async __init code before freeing the memory */ 801 /* need to finish all async __init code before freeing the memory */
802 async_synchronize_full(); 802 async_synchronize_full();
@@ -845,7 +845,7 @@ static int __init kernel_init(void * unused)
845 /* 845 /*
846 * init can run on any cpu. 846 * init can run on any cpu.
847 */ 847 */
848 set_cpus_allowed_ptr(current, CPU_MASK_ALL_PTR); 848 set_cpus_allowed_ptr(current, cpu_all_mask);
849 /* 849 /*
850 * Tell the world that we're going to be the grim 850 * Tell the world that we're going to be the grim
851 * reaper of innocent orphaned children. 851 * reaper of innocent orphaned children.