Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: XLR, XLS: Add comment for smp setup

It seems that BSP could be setup twice, but the nlm_cpu_ready array is only
set for ASPs in smpboot.S, not including BSP.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Cc: "Jayachandran C." <jayachandranc@netlogicmicro.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2695/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>,

authored by

Hillf Danton and committed by
Ralf Baechle
b2788965 93303638

+4
+4
arch/mips/netlogic/xlr/smp.c
··· 158 158 159 159 num_cpus = 1; 160 160 for (i = 0; i < NR_CPUS; i++) { 161 + /* 162 + * BSP is not set in nlm_cpu_ready array, it is only for 163 + * ASPs (goto see smpboot.S) 164 + */ 161 165 if (nlm_cpu_ready[i]) { 162 166 cpu_set(i, phys_cpu_present_map); 163 167 __cpu_number_map[i] = num_cpus;