aboutsummaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorHillf Danton <dhillf@gmail.com>2011-09-24 02:29:54 +0200
committerRalf Baechle <ralf@linux-mips.org>2011-10-24 23:34:25 +0100
commitb2788965baed868ce48ebd6d67f00acf617c9ee6 (patch)
tree4b05861fafbb7b84498a18f7a62239c2e7b30c35 /arch/mips
parent933036386b36d8a9047798f31ab40f9e869bdd7d (diff)
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>,
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/netlogic/xlr/smp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/netlogic/xlr/smp.c b/arch/mips/netlogic/xlr/smp.c
index e2372121307c..080284ded508 100644
--- a/arch/mips/netlogic/xlr/smp.c
+++ b/arch/mips/netlogic/xlr/smp.c
@@ -158,6 +158,10 @@ void __init nlm_smp_setup(void)
num_cpus = 1;
for (i = 0; i < NR_CPUS; i++) {
+ /*
+ * BSP is not set in nlm_cpu_ready array, it is only for
+ * ASPs (goto see smpboot.S)
+ */
if (nlm_cpu_ready[i]) {
cpu_set(i, phys_cpu_present_map);
__cpu_number_map[i] = num_cpus;