Messages in this thread Patch in this message | | | Subject | [PATCH] Fix x86_64 build with CONFIG_HOTPLUG_CPU=n | From | Roland Dreier <> | Date | Sun, 26 Feb 2006 16:42:42 -0800 |
| |
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/
| |