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

Commit 25c3702c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: rt: Fix double accounting of cpu util in task placement decision"

parents 489f8145 e7ed4bb4
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1801,11 +1801,11 @@ static int rt_energy_aware_wake_cpu(struct task_struct *task)
			if (sched_cpu_high_irqload(cpu))
				continue;

			util = cpu_util(cpu);

			if (__cpu_overutilized(cpu, util + tutil))
			if (__cpu_overutilized(cpu, tutil))
				continue;

			util = cpu_util(cpu);

			/* Find the least loaded CPU */
			if (util > best_cpu_util)
				continue;