Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a6f685b authored by Olav Haugan's avatar Olav Haugan Committed by Matt Wagantall
Browse files

sched: Ensure no active EA migration occurs when EA is disabled



There exists a flag called "sched_enable_power_aware" that is not honored
everywhere. Fix this.

Change-Id: I62225939b71b25970115565b4e9ccb450e252d7c
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
[rameezmustafa@codeaurora.org]: Port to msm-3.18]
Signed-off-by: default avatarSyed Rameez Mustafa <rameezmustafa@codeaurora.org>
parent ce0cb029
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -7550,7 +7550,8 @@ struct sched_group *group, struct sg_lb_stats *sgs, struct lb_env *env)
	 * prioritize spreading work over power optimization.
	 */
	cpu = cpumask_first(sched_group_cpus(group));
	if ((capacity(env->dst_rq) == group_rq_capacity(group)) &&
	if (sched_enable_power_aware &&
	    (capacity(env->dst_rq) == group_rq_capacity(group)) &&
	    sgs->sum_nr_running && (env->idle != CPU_NOT_IDLE) &&
	    power_cost_at_freq(env->dst_cpu, 0) <
	    power_cost_at_freq(cpu, 0) &&