1
0
Fork 0
alistair23-linux/drivers/thermal
Zhuguangqing faa72d97c3 thermal/drivers/cpufreq_cooling: Update cpufreq_state only if state has changed
commit 236761f19a upstream.

If state has not changed successfully and we updated cpufreq_state,
next time when the new state is equal to cpufreq_state (not changed
successfully last time), we will return directly and miss a
freq_qos_update_request() that should have been.

Fixes: 5130802ddb ("thermal: cpu_cooling: Switch to QoS requests for freq limits")
Cc: v5.4+ <stable@vger.kernel.org> # v5.4+
Signed-off-by: Zhuguangqing <zhuguangqing@xiaomi.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201106092243.15574-1-zhuguangqing83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-06 14:48:35 +01:00
..
broadcom thermal: brcmstb_thermal: Do not use DT coefficients 2020-03-05 16:43:50 +01:00
intel thermal: int3403_thermal: Downgrade error message 2020-07-22 09:33:15 +02:00
qcom thermal: qcom-spmi-temp-alarm: Don't suppress negative temp 2020-09-09 19:12:29 +02:00
samsung
st
tegra
ti-soc-thermal thermal: ti-soc-thermal: Fix bogus thermal shutdowns for omap4430 2020-09-09 19:12:29 +02:00
Kconfig
Makefile
armada_thermal.c
clock_cooling.c
cpu_cooling.c thermal/drivers/cpufreq_cooling: Update cpufreq_state only if state has changed 2021-01-06 14:48:35 +01:00
da9062-thermal.c
db8500_thermal.c thermal: db8500: Depromote debug print 2020-03-05 16:43:50 +01:00
devfreq_cooling.c
dove_thermal.c
fair_share.c
gov_bang_bang.c
hisi_thermal.c
imx_thermal.c thermal/drivers: imx: Fix missing of_node_put() at probe time 2020-07-22 09:32:52 +02:00
kirkwood_thermal.c
max77620_thermal.c
mtk_thermal.c Revert "thermal: mediatek: fix register index error" 2020-07-22 09:33:03 +02:00
of-thermal.c
power_allocator.c
qoriq_thermal.c
rcar_gen3_thermal.c thermal/drivers/rcar_gen3: Fix undefined temperature if negative 2020-07-09 09:37:53 +02:00
rcar_thermal.c thermal: rcar_thermal: Handle probe error gracefully 2020-10-01 13:17:44 +02:00
rockchip_thermal.c
spear_thermal.c
step_wise.c
tango_thermal.c
thermal-generic-adc.c
thermal_core.c
thermal_core.h
thermal_helpers.c
thermal_hwmon.c
thermal_hwmon.h
thermal_mmio.c
thermal_sysfs.c
uniphier_thermal.c
user_space.c
zx2967_thermal.c