Skip to contentSkip to conversation

x86: visws: fix UP build

PATCH New Alexander Beregalov 1 participant 1 message Mar 26, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: visws: fix UP build

arch/x86/kernel/visws_quirks.c: In function 'visws_find_smp_config':
arch/x86/kernel/visws_quirks.c:229: error: 'setup_max_cpus' undeclared

---

 arch/x86/kernel/visws_quirks.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/kernel/visws_quirks.c +2 -0
index d801d06..f8f41c6 100644
@@ -226,8 +226,10 @@ static int __init visws_find_smp_config(unsigned int reserve)
 		ncpus = CO_CPU_MAX;
 	}
 
+#ifdef CONFIG_SMP
 	if (ncpus > setup_max_cpus)
 		ncpus = setup_max_cpus;
+#endif
 
 #ifdef CONFIG_X86_LOCAL_APIC
 	smp_found_config = 1;