[tip:sched/core] powerpc: Exclude arch_sd_sibiling_asym_packing() on UP

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: tip-bot for Peter Zijlstra
Date: Wednesday, June 9, 2010 - 7:33 am

Commit-ID:  89275d59b572b92b1e2f6ddb63c49deecb801ff9
Gitweb:     http://git.kernel.org/tip/89275d59b572b92b1e2f6ddb63c49deecb801ff9
Author:     Peter Zijlstra <a.p.zijlstra@chello.nl>
AuthorDate: Wed, 9 Jun 2010 16:20:55 +0200
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Wed, 9 Jun 2010 16:31:39 +0200

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>
---
 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 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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 3/3] powerpc: enabled asymmetric SMT scheduling ..., Benjamin Herrenschmidt, (Wed Jun 9, 1:54 am)
[tip:sched/core] powerpc: Enable asymmetric SMT scheduling ..., tip-bot for Michael ..., (Wed Jun 9, 3:18 am)
[tip:sched/core] powerpc: Exclude arch_sd_sibiling_asym_pa ..., tip-bot for Peter Zi ..., (Wed Jun 9, 7:27 am)
[tip:sched/core] powerpc: Exclude arch_sd_sibiling_asym_pa ..., tip-bot for Peter Zi ..., (Wed Jun 9, 7:33 am)