lkml.org 
[lkml]   [2016]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 07/13] sched: Enable SD_BALANCE_WAKE for asymmetric capacity systems
Date
A domain with the SD_ASYM_CPUCAPACITY flag set indicate that
sched_groups at this level and below do not include cpus of all
capacities available (e.g. group containing little-only or big-only cpus
in big.LITTLE systems). It is therefore necessary to put in more effort
in finding an appropriate cpu at task wake-up by enabling balancing at
wake-up (SD_BALANCE_WAKE) on all lower (child) levels.

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>

Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
---
kernel/sched/core.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index ec3f7aef321f..a0a74b2d9f41 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -6414,6 +6414,13 @@ sd_init(struct sched_domain_topology_level *tl,
* Convert topological properties into behaviour.
*/

+ if (sd->flags & SD_ASYM_CPUCAPACITY) {
+ struct sched_domain *t = sd;
+
+ for_each_lower_domain(t)
+ t->flags |= SD_BALANCE_WAKE;
+ }
+
if (sd->flags & SD_SHARE_CPUCAPACITY) {
sd->flags |= SD_PREFER_SIBLING;
sd->imbalance_pct = 110;
--
1.9.1
\
 
 \ /
  Last update: 2016-07-25 16:21    [W:0.479 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site