lkml.org 
[lkml]   [2006]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] Fix x86_64 build with CONFIG_HOTPLUG_CPU=n
From
Date
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-02-27 01:45    [W:0.021 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site