Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <vincent.guittot@linaro.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20240326091616.3696851-4-vincent.guittot@linaro.org

authored by

Vincent Guittot and committed by
Ingo Molnar
c281afe2 f1f8d0a2

-3
-3
drivers/thermal/cpufreq_cooling.c
··· 477 477 unsigned long state) 478 478 { 479 479 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; 480 - struct cpumask *cpus; 481 480 unsigned int frequency; 482 481 int ret; 483 482 ··· 493 494 ret = freq_qos_update_request(&cpufreq_cdev->qos_req, frequency); 494 495 if (ret >= 0) { 495 496 cpufreq_cdev->cpufreq_state = state; 496 - cpus = cpufreq_cdev->policy->related_cpus; 497 - arch_update_thermal_pressure(cpus, frequency); 498 497 ret = 0; 499 498 } 500 499