aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-11-02 02:15:43 -0500
committerStephen Rothwell <sfr@canb.auug.org.au>2005-11-02 02:15:43 -0500
commit2be7a906752abf8dce9350c23b6d1036049a5d3e (patch)
treeef178fa5801bdce24938819086662bb747d8c0c2 /init
parentaaf8a7a2949481482200686c7bd3852e5be2e093 (diff)
parentfbf1769d08a8b085834dceb228540153ac2cd534 (diff)
Merge Paulus' tree
Diffstat (limited to 'init')
-rw-r--r--init/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index 4075d97e94b1..f142d4035341 100644
--- a/init/main.c
+++ b/init/main.c
@@ -64,6 +64,10 @@
64#endif 64#endif
65#endif 65#endif
66 66
67#ifdef CONFIG_X86_LOCAL_APIC
68#include <asm/smp.h>
69#endif
70
67/* 71/*
68 * Versions of gcc older than that listed below may actually compile 72 * Versions of gcc older than that listed below may actually compile
69 * and link okay, but the end product can have subtle run time bugs. 73 * and link okay, but the end product can have subtle run time bugs.
@@ -310,7 +314,14 @@ extern void setup_arch(char **);
310 314
311#ifndef CONFIG_SMP 315#ifndef CONFIG_SMP
312 316
317#ifdef CONFIG_X86_LOCAL_APIC
318static void __init smp_init(void)
319{
320 APIC_init_uniprocessor();
321}
322#else
313#define smp_init() do { } while (0) 323#define smp_init() do { } while (0)
324#endif
314 325
315static inline void setup_per_cpu_areas(void) { } 326static inline void setup_per_cpu_areas(void) { }
316static inline void smp_prepare_cpus(unsigned int maxcpus) { } 327static inline void smp_prepare_cpus(unsigned int maxcpus) { }