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 <[email protected]>
--- 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]