| To: | Ralf Baechle <ralf@linux-mips.org>, LKML <linux-kernel@vger.kernel.org> |
|---|---|
| Subject: | [RFC patch] MIPS/netlogic: dont setup boot CPU twice |
| From: | Hillf Danton <dhillf@gmail.com> |
| Date: | Thu, 4 Aug 2011 22:55:49 +0800 |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=DRZP8Y5NpM6BfMJC3QwvTNV5SuEcFV8pw4Icf2XUt9M=; b=p8xmCMG/9Bk8i7cfYbzY2IUuepk3xIPZhbqZ2T1+IOA9GLZBRxcXK9vj1z+lpG0905 qCr+VqlP3ystsobe2hY21FN+Wwli/7si/G1ivgiA56/JjTCnBYQrHsMiXELD4AoWzogO xFWr6BBCMnkJVRJmsPQk9iKu17DcIQBlLApQc= |
| Resent-date: | Thu, 4 Aug 2011 16:55:05 +0100 |
| Resent-from: | Ralf Baechle <ralf@linux-mips.org> |
| Resent-message-id: | <20110804155505.GD5297@linux-mips.org> |
| Resent-to: | linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
When do smp setup, check for boot CPU is added, then it is impossible to be
initialized twice.
Signed-off-by: Hillf Danton <dhillf@gmail.com>
---
arch/mips/netlogic/xlr/smp.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/mips/netlogic/xlr/smp.c b/arch/mips/netlogic/xlr/smp.c
index b495a7f..e6f8c62 100644
--- a/arch/mips/netlogic/xlr/smp.c
+++ b/arch/mips/netlogic/xlr/smp.c
@@ -167,6 +167,8 @@ void __init nlm_smp_setup(void)
num_cpus = 1;
for (i = 0; i < NR_CPUS; i++) {
+ if (i == boot_cpu)
+ continue;
if (nlm_cpu_ready[i]) {
cpu_set(i, phys_cpu_present_map);
__cpu_number_map[i] = num_cpus;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [RFC patch] MIPS: deduplicate comment for i8259, Hillf Danton |
|---|---|
| Next by Date: | Re: [RFC patch] MIPS/netlogic: dont setup boot CPU twice, Jayachandran C. |
| Previous by Thread: | [RFC patch] MIPS: deduplicate comment for i8259, Hillf Danton |
| Next by Thread: | Re: [RFC patch] MIPS/netlogic: dont setup boot CPU twice, Jayachandran C. |
| Indexes: | [Date] [Thread] [Top] [All Lists] |