]> git.ipfire.org Git - thirdparty/linux.git/commit
thermal: Allow selecting the bang-bang governor as default
authorThierry Reding <treding@nvidia.com>
Fri, 9 Jun 2023 12:44:08 +0000 (14:44 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 26 Jun 2023 10:03:13 +0000 (12:03 +0200)
commit04bf1fe478d81868308bc91b4a1bce50d693f203
treebf3d7f08e629c4def7246374cb5a8ab3ee8d29ea
parent598e1afca47fdbb302ce8d288b06bcc8728efc6c
thermal: Allow selecting the bang-bang governor as default

For many setups the bang-bang governor is exactly what we want. Many
ARM SoC-based devices use fans to cool down the entire SoC and that
works well only with the bang-bang governor because it uses the
hysteresis in order to let the fan run for a while to cool the SoC
down below the trip point before switching it off again.

The step-wise governor will behave strangely in these situations. It
doesn't use the hysteresis, so it can lead to situations where the fan
is turned on for only a very brief period and then is switched back off,
only to get switched back on again very quickly because the SoC hasn't
cooled down very much.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20230609124408.3788680-1-thierry.reding@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/Kconfig
drivers/thermal/thermal_core.h