diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2008-10-28 06:03:57 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-30 10:44:33 -0400 |
commit | 076c6e4f4d81113615f50e5bc2c569f628bcd54a (patch) | |
tree | 818d3a3aa54286e02a990c4e08c88a197c97ba6f /arch/mips | |
parent | 566f74f6b2f8b85d5b8d6caaf97e5672cecd3e3e (diff) |
MIPS: SMP: Do not initialize __cpu_number_map/__cpu_logical_map for CPU 0.
A system isn't necessarily booted on physical processor 0 as this code
assumes. Also the array happens to be allocated in .bss so it's zero
initialized anyway. Systems which need to override this can do so in
their mp_ops->smp_setup() method.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/kernel/smp.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c index b79ea7055ec3..8bf88faf5afd 100644 --- a/arch/mips/kernel/smp.c +++ b/arch/mips/kernel/smp.c | |||
@@ -195,12 +195,6 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
195 | /* preload SMP state for boot cpu */ | 195 | /* preload SMP state for boot cpu */ |
196 | void __devinit smp_prepare_boot_cpu(void) | 196 | void __devinit smp_prepare_boot_cpu(void) |
197 | { | 197 | { |
198 | /* | ||
199 | * This assumes that bootup is always handled by the processor | ||
200 | * with the logic and physical number 0. | ||
201 | */ | ||
202 | __cpu_number_map[0] = 0; | ||
203 | __cpu_logical_map[0] = 0; | ||
204 | cpu_set(0, phys_cpu_present_map); | 198 | cpu_set(0, phys_cpu_present_map); |
205 | cpu_set(0, cpu_online_map); | 199 | cpu_set(0, cpu_online_map); |
206 | cpu_set(0, cpu_callin_map); | 200 | cpu_set(0, cpu_callin_map); |