diff options
author | 2022-03-18 17:36:56 +0100 | |
---|---|---|
committer | 2022-04-29 11:06:29 +0200 | |
commit | 4e3c7d338a2260406ae22eaf6d77b639d59bdc7e (patch) | |
tree | 8676bb89ff7df00aac722a36427897396b9d26b6 /scripts/generate_rust_analyzer.py | |
parent | sched/fair: Revise comment about lb decision matrix (diff) | |
download | wireguard-linux-4e3c7d338a2260406ae22eaf6d77b639d59bdc7e.tar.xz wireguard-linux-4e3c7d338a2260406ae22eaf6d77b639d59bdc7e.zip |
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 <dietmar.eggemann@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20220318163656.954440-1-dietmar.eggemann@arm.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions