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

Commit 8d029ad8 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 864b4f3f 1212399d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5787,7 +5787,7 @@ 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_rq(cpu)->nr_running == 1;
			!__cpu_overutilized(cpu, task_util(p));
	bool rtg_test = rtg_target && cpumask_test_cpu(cpu, rtg_target);

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