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

Commit e76348ec authored by Brendan Jackman's avatar Brendan Jackman Committed by Chris Redpath
Browse files

Revert "sched/fair: ensure utilization signals are synchronized before use"



This reverts commit 83f462da.

Change-Id: I37ba36da61df2beb3a005557d9b673027f446916
Signed-off-by: default avatarBrendan Jackman <brendan.jackman@arm.com>
parent ebc28671
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -6573,16 +6573,9 @@ select_task_rq_fair(struct task_struct *p, int prev_cpu, int sd_flag, int wake_f
	int want_affine = 0;
	int sync = wake_flags & WF_SYNC;

	if (sd_flag & SD_BALANCE_WAKE) {
		/*
		 * do wake_cap unconditionally as it causes task and cpu
		 * utilization to be synced, and we need that for energy
		 * aware wakeups
		 */
		int _wake_cap = wake_cap(p, cpu, prev_cpu);
		want_affine = !wake_wide(p) && !_wake_cap
	if (sd_flag & SD_BALANCE_WAKE)
		want_affine = !wake_wide(p) && !wake_cap(p, cpu, prev_cpu)
			      && cpumask_test_cpu(cpu, tsk_cpus_allowed(p));
	}

	if (energy_aware() && !(cpu_rq(prev_cpu)->rd->overutilized))
		return select_energy_cpu_brute(p, prev_cpu, sync);