Commit 73eb7d9e authored by Russell King's avatar Russell King Committed by Russell King

[PATCH] ARM SMP: Initialise cpu_present_map

Rather than relying on the fixup code in init/main.c, explicitly
initialise cpu_present_map.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent e11b2236
...@@ -236,6 +236,7 @@ void __init smp_prepare_boot_cpu(void) ...@@ -236,6 +236,7 @@ void __init smp_prepare_boot_cpu(void)
unsigned int cpu = smp_processor_id(); unsigned int cpu = smp_processor_id();
cpu_set(cpu, cpu_possible_map); cpu_set(cpu, cpu_possible_map);
cpu_set(cpu, cpu_present_map);
cpu_set(cpu, cpu_online_map); cpu_set(cpu, cpu_online_map);
} }
......
...@@ -174,11 +174,13 @@ void __init smp_prepare_cpus(unsigned int max_cpus) ...@@ -174,11 +174,13 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
max_cpus = ncores; max_cpus = ncores;
/* /*
* Initialise the present mask - this tells us which CPUs should * Initialise the possible/present maps.
* be present. * cpu_possible_map describes the set of CPUs which may be present
* cpu_present_map describes the set of CPUs populated
*/ */
for (i = 0; i < max_cpus; i++) { for (i = 0; i < max_cpus; i++) {
cpu_set(i, cpu_possible_map); cpu_set(i, cpu_possible_map);
cpu_set(i, cpu_present_map);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment