aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDietmar Eggemann <dietmar.eggemann@arm.com>2015-07-07 19:24:16 +0100
committerVincent Guittot <vincent.guittot@linaro.org>2015-07-27 17:59:41 +0200
commit59b13028aedbc37c2a9a44a3d55f075dc53faf0f (patch)
treeeb75d64bfdedd540339650363e8bd0b2e86f9b4e
parent264f15a66dbffb86c4849f7d9492b865d598573a (diff)
sched: Consider a not over-utilized energy-aware system as balanced
In case the system operates below the tipping point indicator, introduced in ("sched: Add over-utilization/tipping point indicator"), bail out in find_busiest_group after the dst and src group statistics have been checked. There is simply no need to move usage around because all involved cpus still have spare cycles available. For an energy-aware system below its tipping point, we rely on the task placement of the wakeup path. This works well for short running tasks. The existence of long running tasks on one of the involved cpus lets the system operate over its tipping point. To be able to move such a task (whose load can't be used to average the load among the cpus) from a src cpu with lower capacity than the dst_cpu, an additional rule has to be implemented in need_active_balance. Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
-rw-r--r--kernel/sched/fair.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index e4244f339447..5876956111c5 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -7370,6 +7370,10 @@ static struct sched_group *find_busiest_group(struct lb_env *env)
* this level.
*/
update_sd_lb_stats(env, &sds);
+
+ if (energy_aware() && !env->dst_rq->rd->overutilized)
+ goto out_balanced;
+
local = &sds.local_stat;
busiest = &sds.busiest_stat;