* [PATCH] Fix x86_64 build with CONFIG_HOTPLUG_CPU=n
@ 2006-02-27 0:42 Roland Dreier
0 siblings, 0 replies; only message in thread
From: Roland Dreier @ 2006-02-27 0:42 UTC (permalink / raw)
To: ak, akpm; +Cc: linux-kernel, discuss
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-27 0:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-27 0:42 [PATCH] Fix x86_64 build with CONFIG_HOTPLUG_CPU=n Roland Dreier
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.