Commit d6647bdf98a0de19963de8d5d9698d469ed72097
1 parent
64f1607ffb
Exists in
master
and in
7 other branches
init: set nr_cpu_ids before setup_per_cpu_areas()
nr_cpu_ids is dependent only on cpu_possible_map and setup_per_cpu_areas() already depends on cpu_possible_map and will use nr_cpu_ids. Initialize nr_cpu_ids before setting up percpu areas. Signed-off-by: Tejun Heo <tj@kernel.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
init/main.c
... | ... | @@ -584,8 +584,8 @@ |
584 | 584 | setup_arch(&command_line); |
585 | 585 | mm_init_owner(&init_mm, &init_task); |
586 | 586 | setup_command_line(command_line); |
587 | - setup_per_cpu_areas(); | |
588 | 587 | setup_nr_cpu_ids(); |
588 | + setup_per_cpu_areas(); | |
589 | 589 | smp_prepare_boot_cpu(); /* arch-specific boot-cpu hooks */ |
590 | 590 | |
591 | 591 | build_all_zonelists(); |