diff options
author | 2021-11-18 17:42:40 +0100 | |
---|---|---|
committer | 2021-12-11 09:10:00 +0100 | |
commit | 82762d2af31a60081162890983a83499c9c7dd74 (patch) | |
tree | 1aeffa58b23b7ab2489ba37124a535d30a0cf030 /drivers | |
parent | sched/fair: Cleanup task_util and capacity type (diff) | |
download | linux-dev-82762d2af31a60081162890983a83499c9c7dd74.tar.xz linux-dev-82762d2af31a60081162890983a83499c9c7dd74.zip |
sched/fair: Replace CFS internal cpu_util() with cpu_util_cfs()
cpu_util_cfs() was created by commit d4edd662ac16 ("sched/cpufreq: Use
the DEADLINE utilization signal") to enable the access to CPU
utilization from the Schedutil CPUfreq governor.
Commit a07630b8b2c1 ("sched/cpufreq/schedutil: Use util_est for OPP
selection") added util_est support later.
The only thing cpu_util() is doing on top of what cpu_util_cfs() already
does is to clamp the return value to the [0..capacity_orig] capacity
range of the CPU. Integrating this into cpu_util_cfs() is not harming
the existing users (Schedutil and CPUfreq cooling (latter via
sched_cpu_util() wrapper)).
For straightforwardness, prefer to keep using `int cpu` as the function
parameter over using `struct rq *rq` which might avoid some calls to
cpu_rq(cpu) -> per_cpu(runqueues, cpu) -> RELOC_HIDE().
Update cfs_util()'s documentation and reuse it for cpu_util_cfs().
Remove cpu_util().
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/20211118164240.623551-1-dietmar.eggemann@arm.com
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions