Skip to contentSkip to conversation

Fix x86_64 build with CONFIG_HOTPLUG_CPU=n

PATCH New Roland Dreier 1 participant 1 message Feb 27, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix x86_64 build with CONFIG_HOTPLUG_CPU=n

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.

arch/x86_64/kernel/setup.c +1 -1
@@ -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