From: Ralf Baechle Date: Tue, 28 Oct 2008 10:03:57 +0000 (+0000) Subject: MIPS: SMP: Do not initialize __cpu_number_map/__cpu_logical_map for CPU 0. X-Git-Tag: v2.6.28-rc3~36^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=076c6e4f4d81113615f50e5bc2c569f628bcd54a;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c index b79ea7055ec..8bf88faf5af 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) /* preload SMP state for boot cpu */ void __devinit smp_prepare_boot_cpu(void) { - /* - * This assumes that bootup is always handled by the processor - * with the logic and physical number 0. - */ - __cpu_number_map[0] = 0; - __cpu_logical_map[0] = 0; cpu_set(0, phys_cpu_present_map); cpu_set(0, cpu_online_map); cpu_set(0, cpu_callin_map);