diff options
author | Dietmar Eggemann <[email protected]> | 2022-03-18 17:36:56 +0100 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-04-29 11:06:29 +0200 |
commit | 4e3c7d338a2260406ae22eaf6d77b639d59bdc7e (patch) | |
tree | 8676bb89ff7df00aac722a36427897396b9d26b6 /lib/mpi/mpi-sub-ui.c | |
parent | a658353167bf2ea6052cee071dbcc13e0f229dc9 (diff) |
sched/fair: Refactor cpu_util_without()
Except the 'task has no contribution or is new' condition at the
beginning of cpu_util_without(), which it shares with the load and
runnable counterpart functions, a cpu_util_next(..., dst_cpu = -1)
call can replace the rest of it.
The UTIL_EST specific check that task util_est has to be subtracted
from the CPU one in case of an enqueued (or current (to cater for the
wakeup - lb race)) task has to be moved to cpu_util_next().
This was initially introduced by commit c469933e7721
("sched/fair: Fix cpu_util_wake() for 'execl' type workloads").
UnixBench's `execl` throughput tests were run on the dual socket 40
CPUs Intel E5-2690 v2 to make sure it doesn't regress again.
Signed-off-by: Dietmar Eggemann <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Vincent Guittot <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions