diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-06-09 10:20:55 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-06-09 10:31:39 -0400 |
commit | 89275d59b572b92b1e2f6ddb63c49deecb801ff9 (patch) | |
tree | 8e3ace7150e810f72af52f35d80e1ac4eeac95f1 /arch/powerpc | |
parent | 76cbd8a8f8b0dddbff89a6708bd5bd13c0d21a00 (diff) |
powerpc: Exclude arch_sd_sibiling_asym_packing() on UP
Only SMP systems care about load-balance features, plus this
saves some .text space on UP and also fixes the build.
Reported-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Michael Neuling <mikey@neuling.org>
LKML-Reference: <tip-76cbd8a8f8b0dddbff89a6708bd5bd13c0d21a00@git.kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index a3f347c635b2..9b41ece010b6 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -1269,6 +1269,7 @@ unsigned long randomize_et_dyn(unsigned long base) | |||
1269 | return ret; | 1269 | return ret; |
1270 | } | 1270 | } |
1271 | 1271 | ||
1272 | #ifdef CONFIG_SMP | ||
1272 | int arch_sd_sibiling_asym_packing(void) | 1273 | int arch_sd_sibiling_asym_packing(void) |
1273 | { | 1274 | { |
1274 | if (cpu_has_feature(CPU_FTR_ASYM_SMT)) { | 1275 | if (cpu_has_feature(CPU_FTR_ASYM_SMT)) { |
@@ -1277,3 +1278,4 @@ int arch_sd_sibiling_asym_packing(void) | |||
1277 | } | 1278 | } |
1278 | return 0; | 1279 | return 0; |
1279 | } | 1280 | } |
1281 | #endif | ||