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

Commit 791911c1 authored by Puja Gupta's avatar Puja Gupta Committed by Satya Durga Srinivasu Prabhala
Browse files

Revert "sched/fair: Add overutilization condition to sync wakeup case"



This reverts commit 1212399d ("sched/fair: Add overutilization condition
to sync wakeup case"). The change causes regression in some usecases
which use sync wakeup, hence revert the change.

Change-Id: I905a992a2c4d44dfa9b45ef06f0ed4b1b49b0eeb
Signed-off-by: default avatarPuja Gupta <pujag@codeaurora.org>
[satyap@codeaurora.org: resolve trivial merge conflict]
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent 62fcf165
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3818,8 +3818,7 @@ static inline bool
bias_to_waker_cpu(struct task_struct *p, int cpu, struct cpumask *rtg_target)
{
	bool base_test = cpumask_test_cpu(cpu, &p->cpus_allowed) &&
			cpu_active(cpu) && task_fits_max(p, cpu) &&
			!__cpu_overutilized(cpu, task_util(p));
			cpu_active(cpu) && task_fits_max(p, cpu);
	bool rtg_test = rtg_target && cpumask_test_cpu(cpu, rtg_target);

	return base_test && (!rtg_target || rtg_test);