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

Commit 4ec7d818 authored by Quentin Perret's avatar Quentin Perret Committed by Andres Oportus
Browse files

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



This reverts commit a4bd433852d52186f306f1621f16f90609ded67f.

Change-Id: I75e9f169d12d53dec3eecc9a4196c7a900bd3e7c
Signed-off-by: default avatarQuentin Perret <quentin.perret@arm.com>
parent 0db9eac4
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -6915,13 +6915,8 @@ select_task_rq_fair(struct task_struct *p, int prev_cpu, int sd_flag, int wake_f

	if (sd_flag & SD_BALANCE_WAKE) {
		record_wakee(p);
		/*
		 * do wake_cap unconditionally as it causes task and cpu
		 * utilization to be synced, and we need that for energy
		 * aware wakeups
		 */
		want_affine = !wake_wide(p) && !wake_cap(p, cpu, prev_cpu)
			&& cpumask_test_cpu(cpu, tsk_cpus_allowed(p));
		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))