linux-stable/Documentation/driver-api/thermal
Daniel Lezcano a7d6ba14ef thermal/core: Remove the 'forced_passive' option
The code was reorganized in 2012 with the commit 0c01ebbfd3.

The main change is a loop on the trip points array and a unconditional
call to the throttle() ops of the governors for each of them even if
the trip temperature is not reached yet.

With this change, the 'forced_passive' is no longer checked in the
thermal_zone_device_update() function but in the step wise governor's
throttle() callback.

As the force_passive does no belong to the trip point array, the
thermal_zone_device_update() can not compare with the specified
passive temperature, thus does not detect the passive limit has been
crossed. Consequently, throttle() is never called and the
'forced_passive' branch is unreached.

In addition, the default processor cooling device is not automatically
bound to the thermal zone if there is not passive trip point, thus the
'forced_passive' can not operate.

If there is an active trip point, then the throttle function will be
called to mitigate at this temperature and the 'forced_passive' will
override the mitigation of the active trip point in this case but with
the default cooling device bound to the thermal zone, so usually a
fan, and that is not a passive cooling effect.

Given the regression exists since more than 8 years, nobody complained
and at the best of my knowledge there is no bug open in
https://bugzilla.kernel.org, it is reasonable to say it is unused.

Remove the 'forced_passive' related code.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Thara Gopinath <thara.gopinath@linaro.org>
Link: https://lore.kernel.org/r/20201214233811.485669-1-daniel.lezcano@linaro.org
2021-01-19 22:22:45 +01:00
..
cpu-cooling-api.rst docs: thermal: add it to the driver API 2019-07-31 13:25:15 -06:00
cpu-idle-cooling.rst docs: thermal: convert cpu-idle-cooling.rst to ReST 2020-06-19 14:03:00 -06:00
exynos_thermal_emulation.rst docs: thermal: add it to the driver API 2019-07-31 13:25:15 -06:00
exynos_thermal.rst thermal: exynos: Rename Samsung and Exynos to lowercase 2020-01-27 10:24:32 +01:00
index.rst doc: thermal: add cpu-idle-cooling to index tree 2020-05-05 09:57:14 -06:00
intel_powerclamp.rst docs: thermal: add it to the driver API 2019-07-31 13:25:15 -06:00
nouveau_thermal.rst Replace HTTP links with HTTPS ones: Documentation/driver-api 2020-06-26 11:09:04 -06:00
power_allocator.rst PM: EM: Clarify abstract scale usage for power values in Energy Model 2020-11-10 20:29:28 +01:00
sysfs-api.rst thermal/core: Remove the 'forced_passive' option 2021-01-19 22:22:45 +01:00
x86_pkg_temperature_thermal.rst docs: thermal: add it to the driver API 2019-07-31 13:25:15 -06:00