diff options
author | Brian Gerst <brgerst@gmail.com> | 2009-01-26 22:56:47 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-01-26 22:56:47 -0500 |
commit | 996db817e3d1529d711e55b938d72ae4060b39fd (patch) | |
tree | 3a676e1db30c261c66bb5a9c87cac5170f810a38 /arch/x86/kernel/setup_percpu.c | |
parent | ec70de8b04bf37213982a5e8f303bc38679f3f8e (diff) |
x86: only compile setup_percpu.o on SMP
Impact: Minor build optimization
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/kernel/setup_percpu.c')
-rw-r--r-- | arch/x86/kernel/setup_percpu.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c index d367996693e6..f30ff691c34d 100644 --- a/arch/x86/kernel/setup_percpu.c +++ b/arch/x86/kernel/setup_percpu.c | |||
@@ -22,14 +22,8 @@ | |||
22 | # define DBG(x...) | 22 | # define DBG(x...) |
23 | #endif | 23 | #endif |
24 | 24 | ||
25 | /* | ||
26 | * Could be inside CONFIG_HAVE_SETUP_PER_CPU_AREA with other stuff but | ||
27 | * voyager wants cpu_number too. | ||
28 | */ | ||
29 | #ifdef CONFIG_SMP | ||
30 | DEFINE_PER_CPU(int, cpu_number); | 25 | DEFINE_PER_CPU(int, cpu_number); |
31 | EXPORT_PER_CPU_SYMBOL(cpu_number); | 26 | EXPORT_PER_CPU_SYMBOL(cpu_number); |
32 | #endif | ||
33 | 27 | ||
34 | #ifdef CONFIG_HAVE_SETUP_PER_CPU_AREA | 28 | #ifdef CONFIG_HAVE_SETUP_PER_CPU_AREA |
35 | 29 | ||