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

Commit ef91028c authored by Vikram Mulukutla's avatar Vikram Mulukutla Committed by Joonwoo Park
Browse files

sched: fair: Always use energy aware wakeups



Currently, EAS scheduling ignores energy considerations for fork-wakeups
or if the cpu we're doing the wakeup on is overutilized. Unfortunately,
this also breaks the other considerations for placement such as C-state,
colocation etc. Let's always run the energy_aware_wake_cpu function and
introduce optimizations in that function instead.

Change-Id: I14c85beaa162b9013a9a648d6a64b9fc02f02915
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent ade9a794
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7103,6 +7103,9 @@ select_task_rq_fair(struct task_struct *p, int prev_cpu, int sd_flag, int wake_f
	return select_best_cpu(p, prev_cpu, 0, sync);
#endif

	if (energy_aware())
		return energy_aware_wake_cpu(p, prev_cpu, sync);

	if (sd_flag & SD_BALANCE_WAKE) {
		record_wakee(p);
		want_affine = (!wake_wide(p) && task_fits_max(p, cpu) &&