diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-07-11 14:42:58 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-07-11 14:42:58 -0400 |
commit | 73eb7d9e8cfd16813eec94d0ec8fa2a5262a85cc (patch) | |
tree | 79c81babb78c36f94f677ee587ab884903fffa12 | |
parent | e11b2236eace94ad9a2e421904742e83976405ed (diff) |
[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: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/kernel/smp.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-integrator/platsmp.c | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 78c24a1266b1..7ae45c3fc834 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c | |||
@@ -236,6 +236,7 @@ void __init smp_prepare_boot_cpu(void) | |||
236 | unsigned int cpu = smp_processor_id(); | 236 | unsigned int cpu = smp_processor_id(); |
237 | 237 | ||
238 | cpu_set(cpu, cpu_possible_map); | 238 | cpu_set(cpu, cpu_possible_map); |
239 | cpu_set(cpu, cpu_present_map); | ||
239 | cpu_set(cpu, cpu_online_map); | 240 | cpu_set(cpu, cpu_online_map); |
240 | } | 241 | } |
241 | 242 | ||
diff --git a/arch/arm/mach-integrator/platsmp.c b/arch/arm/mach-integrator/platsmp.c index 88f40a5189cd..2ba025777098 100644 --- a/arch/arm/mach-integrator/platsmp.c +++ b/arch/arm/mach-integrator/platsmp.c | |||
@@ -174,11 +174,13 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
174 | max_cpus = ncores; | 174 | max_cpus = ncores; |
175 | 175 | ||
176 | /* | 176 | /* |
177 | * Initialise the present mask - this tells us which CPUs should | 177 | * Initialise the possible/present maps. |
178 | * be present. | 178 | * cpu_possible_map describes the set of CPUs which may be present |
179 | * cpu_present_map describes the set of CPUs populated | ||
179 | */ | 180 | */ |
180 | for (i = 0; i < max_cpus; i++) { | 181 | for (i = 0; i < max_cpus; i++) { |
181 | cpu_set(i, cpu_possible_map); | 182 | cpu_set(i, cpu_possible_map); |
183 | cpu_set(i, cpu_present_map); | ||
182 | } | 184 | } |
183 | 185 | ||
184 | /* | 186 | /* |