From: dwalker@codeaurora.org (Daniel Walker)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH] smp: parallel smp boot option
Date: Mon, 21 Jun 2010 14:40:22 -0700 [thread overview]
Message-ID: <1277156422-9130-1-git-send-email-dwalker@codeaurora.org> (raw)
From: Steve Muckle <smuckle@codeaurora.org>
Some SMP configurations start all available cores in parallel
through the kernel entrypoint, rather than secondary CPUs waiting to be
brought out of reset into machine specific startup code.
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
---
arch/arm/Kconfig | 9 +++++++++
arch/arm/kernel/head.S | 3 +++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 021b1d5..39103d2 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1020,6 +1020,15 @@ config NR_CPUS
depends on SMP
default "4"
+config SMP_PARALLEL_START
+ bool "Parallel start of SMP cores"
+ depends on SMP
+ default n
+ help
+ Say Y here if all CPUs boot to the kernel entrypoint in
+ parallel, rather than non-master CPUs waiting to be brought
+ out of reset into machine specific startup code.
+
config HOTPLUG_CPU
bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
depends on SMP && HOTPLUG && EXPERIMENTAL
diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
index 4946c72..9730b7a 100644
--- a/arch/arm/kernel/head.S
+++ b/arch/arm/kernel/head.S
@@ -78,6 +78,9 @@
ENTRY(stext)
setmode PSR_F_BIT | PSR_I_BIT | SVC_MODE, r9 @ ensure svc mode
@ and irqs disabled
+#ifdef CONFIG_SMP_PARALLEL_START
+ bl __smp_secondary_spin
+#endif
mrc p15, 0, r9, c0, c0 @ get processor id
bl __lookup_processor_type @ r5=procinfo r9=cpuid
movs r10, r5 @ invalid processor (r5=0)?
--
1.7.1
--
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next reply other threads:[~2010-06-21 21:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-21 21:40 Daniel Walker [this message]
2010-06-21 22:00 ` [RFC PATCH] smp: parallel smp boot option Russell King - ARM Linux
2010-06-21 22:07 ` Daniel Walker
2010-06-21 22:22 ` Daniel Walker
2010-06-21 22:31 ` Russell King - ARM Linux
2010-06-22 0:47 ` smuckle at codeaurora.org
2010-06-22 0:23 ` smuckle at codeaurora.org
2010-06-21 22:03 ` [RFC PATCH] msm: initial MSM8X60 early kernel boot support Daniel Walker
2010-06-21 22:07 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1277156422-9130-1-git-send-email-dwalker@codeaurora.org \
--to=dwalker@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).