x86: fix compiling with 64bit with def_to_bigsmp
authorYinghai Lu <yinghai@kernel.org>
Fri, 30 Jan 2009 03:30:04 +0000 (19:30 -0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 30 Jan 2009 14:21:23 +0000 (15:21 +0100)
only need to do cut off with 32bit

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/smpboot.c

index 2912fa3a8ef28ba0d1b600763600ba9b2b1c18bf..4c3cff574947203ac58076cc9b8ada088d1114a4 100644 (file)
@@ -1000,7 +1000,7 @@ static int __init smp_sanity_check(unsigned max_cpus)
 {
        preempt_disable();
 
-#ifndef CONFIG_X86_BIGSMP
+#if !defined(CONFIG_X86_BIGSMP) && defined(CONFIG_X86_32)
        if (def_to_bigsmp && nr_cpu_ids > 8) {
                unsigned int cpu;
                unsigned nr;