diff options
author | Hillf Danton <dhillf@gmail.com> | 2011-09-23 20:29:54 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-10-24 18:34:25 -0400 |
commit | b2788965baed868ce48ebd6d67f00acf617c9ee6 (patch) | |
tree | 4b05861fafbb7b84498a18f7a62239c2e7b30c35 /arch/mips | |
parent | 933036386b36d8a9047798f31ab40f9e869bdd7d (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.c | 4 |
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) | |||
158 | 158 | ||
159 | num_cpus = 1; | 159 | num_cpus = 1; |
160 | for (i = 0; i < NR_CPUS; i++) { | 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 | if (nlm_cpu_ready[i]) { | 165 | if (nlm_cpu_ready[i]) { |
162 | cpu_set(i, phys_cpu_present_map); | 166 | cpu_set(i, phys_cpu_present_map); |
163 | __cpu_number_map[i] = num_cpus; | 167 | __cpu_number_map[i] = num_cpus; |