linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sched: Enable arch-specific asym packing option in sched domain
@ 2012-05-04 20:28 Diwakar Tundlam
  2012-05-04 21:17 ` Peter Zijlstra
  2012-05-04 22:06 ` Diwakar Tundlam
  0 siblings, 2 replies; 17+ messages in thread
From: Diwakar Tundlam @ 2012-05-04 20:28 UTC (permalink / raw)
  To: 'Ingo Molnar', 'Peter Zijlstra',
	'Andrew Morton', 'Christoph Lameter',
	'Stephen Rothwell', 'Benjamin Herrenschmidt',
	'David Rientjes', 'linux-kernel@vger.kernel.org'
  Cc: Peter De Schrijver

Add arch specific (weak) routine to set (or not set) the ASYM_PACKING
sched domain flag. This change itself does nothing, but allows archs
that require asym-packing option to set it by implementing the arch
specific routine to turn it on.
    
The weak symbol is already defined in sched_fair.c but was mis-spelled
in the header file. Fixed spelling error in the weak symbol definition.
    
Change-Id: Ibdf38e0a40f76ee3c1829f08b5feedcf900a1b89
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
---
 include/linux/sched.h    |    2 +-
 include/linux/topology.h |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index c569719..cf793f0 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -903,7 +903,7 @@ static inline int sd_balance_for_package_power(void)
        return SD_PREFER_SIBLING;
 }
 
-extern int __weak arch_sd_sibiling_asym_packing(void);
+extern int __weak arch_sd_sibling_asym_packing(void);
 
 /*
  * Optimise SD flags for power savings:
diff --git a/include/linux/topology.h b/include/linux/topology.h
index b480403..eb09cd4 100644
--- a/include/linux/topology.h
+++ b/include/linux/topology.h
@@ -168,6 +168,7 @@ int arch_update_cpu_topology(void);
                                | 0*SD_SHARE_CPUPOWER                   \
                                | 0*SD_SHARE_PKG_RESOURCES              \
                                | 0*SD_SERIALIZE                        \
+                               | arch_sd_sibling_asym_packing()        \
                                | sd_balance_for_package_power()        \
                                | sd_power_saving_flags()               \
                                ,                                       \

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2012-05-08  9:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-04 20:28 [PATCH] sched: Enable arch-specific asym packing option in sched domain Diwakar Tundlam
2012-05-04 21:17 ` Peter Zijlstra
2012-05-04 22:06 ` Diwakar Tundlam
2012-05-04 22:10   ` Peter Zijlstra
2012-05-04 22:18     ` Diwakar Tundlam
2012-05-04 22:29       ` Peter Zijlstra
2012-05-04 23:18         ` Diwakar Tundlam
2012-05-04 23:20           ` Michael Neuling
2012-05-04 23:25             ` Diwakar Tundlam
2012-05-04 23:41               ` Michael Neuling
2012-05-07  2:59               ` Michael Wang
2012-05-04 23:55           ` Suresh Siddha
2012-05-05 20:35           ` Peter Zijlstra
2012-05-07 17:25             ` Diwakar Tundlam
2012-05-08  9:46               ` Peter Zijlstra
2012-05-04 22:47       ` Michael Neuling
2012-05-04 22:51       ` Michael Neuling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).