From: Peter Zijlstra Date: Wed, 9 Jun 2010 14:20:55 +0000 (+0200) Subject: powerpc: Exclude arch_sd_sibiling_asym_packing() on UP X-Git-Tag: upstream/snapshot3+hdmi~13747^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89275d59b572b92b1e2f6ddb63c49deecb801ff9;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Peter Zijlstra Cc: Michael Neuling LKML-Reference: Signed-off-by: Ingo Molnar --- diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index a3f347c..9b41ece 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) return ret; } +#ifdef CONFIG_SMP int arch_sd_sibiling_asym_packing(void) { if (cpu_has_feature(CPU_FTR_ASYM_SMT)) { @@ -1277,3 +1278,4 @@ int arch_sd_sibiling_asym_packing(void) } return 0; } +#endif