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

This commit is contained in:
qctecmdr 2020-08-15 07:11:23 -07:00 • committed by Gerrit - the friendly Code Review server
commit dd0b2f4c79

View file

@ -1852,11 +1852,11 @@ retry:
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;