Skip to contentSkip to conversation

fix build for x86_64 for !CONFIG_HOTPLUG_CPU

PATCH New Brian Magnuson 1 participant 1 message Feb 26, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix build for x86_64 for !CONFIG_HOTPLUG_CPU

The commit e2c0388866dc12bef56b178b958f9b778fe6c687 added setup_additional_cpus to setup.c but this is only defined if CONFIG_HOTPLUG_CPU is set. This patch changes the #ifdef to reflect that.

arch/x86_64/kernel/setup.c 2006-02-26 17:33:05.000000000 -0500 renamed from arch/x86_64/kernel/setup.c 2006-02-26 17:03:26.000000000 -0500 +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

.