lkml.org 
[lkml]   [2009]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.6.30-git] 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

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---

arch/x86/kernel/visws_quirks.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/visws_quirks.c b/arch/x86/kernel/visws_quirks.c
index d801d06..f8f41c6 100644
--- a/arch/x86/kernel/visws_quirks.c
+++ b/arch/x86/kernel/visws_quirks.c
@@ -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;

\
 
 \ /
  Last update: 2009-03-26 23:53    [W:0.052 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site