From: Roland Dreier <rdreier@cisco.com>
To: ak@suse.de, akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, discuss@x86-64.org
Subject: [PATCH] Fix x86_64 build with CONFIG_HOTPLUG_CPU=n
Date: Sun, 26 Feb 2006 16:42:42 -0800 [thread overview]
Message-ID: <adar75pskcd.fsf@cisco.com> (raw)
In arch/x86_64, kernel/setup.c calls setup_additional_cpus() if
CONFIG_SMP is defined. However, kernel/smpboot.c only defines it if
CONFIG_HOTPLUG_CPU is defined, so a build with SMP but not HOTPLUG_CPU
will fail. Fix this by testing HOTPLUG_CPU in kernel/setup.c as well.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
--- a/arch/x86_64/kernel/setup.c
+++ b/arch/x86_64/kernel/setup.c
@@ -424,7 +424,7 @@ static __init void parse_cmdline_early (
elfcorehdr_addr = memparse(from+11, &from);
#endif
-#ifdef CONFIG_SMP
+#ifdef CONFIG_HOTPLUG_CPU
else if (!memcmp(from, "additional_cpus=", 16))
setup_additional_cpus(from+16);
#endif
reply other threads:[~2006-02-27 0:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=adar75pskcd.fsf@cisco.com \
--to=rdreier@cisco.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=discuss@x86-64.org \
--cc=linux-kernel@vger.kernel.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
Powered by JetHome