sched/cpufreq: Rename arch_update_thermal_pressure() => arch_update_hw_pressure()
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 26 Mar 2024 09:16:15 +0000 (10:16 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Apr 2024 10:08:01 +0000 (12:08 +0200)
commitd4dbc991714eefcbd8d54a3204bd77a0a52bd32d
tree4d03ab2482c2c088f200f05b2cd872aa62d9eab3
parentc281afe24fc51691e65f59ea66eefa14cbdfa0e7
sched/cpufreq: Rename arch_update_thermal_pressure() => arch_update_hw_pressure()

Now that cpufreq provides a pressure value to the scheduler, rename
arch_update_thermal_pressure into HW pressure to reflect that it returns
a pressure applied by HW (i.e. with a high frequency change) and not
always related to thermal mitigation but also generated by max current
limitation as an example. Such high frequency signal needs filtering to be
smoothed and provide an value that reflects the average available capacity
into the scheduler time scale.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Qais Yousef <qyousef@layalina.io>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/r/20240326091616.3696851-5-vincent.guittot@linaro.org
15 files changed:
arch/arm/include/asm/topology.h
arch/arm64/include/asm/topology.h
drivers/base/arch_topology.c
drivers/cpufreq/qcom-cpufreq-hw.c
include/linux/arch_topology.h
include/linux/sched/topology.h
include/trace/events/hw_pressure.h [new file with mode: 0644]
include/trace/events/sched.h
include/trace/events/thermal_pressure.h [deleted file]
init/Kconfig
kernel/sched/core.c
kernel/sched/fair.c
kernel/sched/pelt.c
kernel/sched/pelt.h
kernel/sched/sched.h