From: Vincent Guittot Date: Tue, 26 Mar 2024 09:16:14 +0000 (+0100) Subject: thermal/cpufreq: Remove arch_update_thermal_pressure() X-Git-Tag: v6.10-rc1~209^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c281afe24fc51691e65f59ea66eefa14cbdfa0e7;p=thirdparty%2Fkernel%2Flinux.git thermal/cpufreq: Remove arch_update_thermal_pressure() arch_update_thermal_pressure() aims to update fast changing signal which should be averaged using PELT filtering before being provided to the scheduler which can't make smart use of fast changing signal. cpufreq now provides the maximum freq_qos pressure on the capacity to the scheduler, which includes cpufreq cooling device. Remove the call to arch_update_thermal_pressure() in cpufreq cooling device as this is handled by cpufreq_get_pressure(). Signed-off-by: Vincent Guittot Signed-off-by: Ingo Molnar Tested-by: Lukasz Luba Reviewed-by: Lukasz Luba Reviewed-by: Dhruva Gole Acked-by: Viresh Kumar Link: https://lore.kernel.org/r/20240326091616.3696851-4-vincent.guittot@linaro.org --- diff --git a/drivers/thermal/cpufreq_cooling.c b/drivers/thermal/cpufreq_cooling.c index 9d1b1459700df..280071be30b15 100644 --- a/drivers/thermal/cpufreq_cooling.c +++ b/drivers/thermal/cpufreq_cooling.c @@ -477,7 +477,6 @@ static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) { struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; - struct cpumask *cpus; unsigned int frequency; int ret; @@ -494,8 +493,6 @@ static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev, ret = freq_qos_update_request(&cpufreq_cdev->qos_req, frequency); if (ret >= 0) { cpufreq_cdev->cpufreq_state = state; - cpus = cpufreq_cdev->policy->related_cpus; - arch_update_thermal_pressure(cpus, frequency); ret = 0; }