diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-08-26 18:23:49 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-09-05 12:32:54 +0200 |
commit | 15cb56bd529868d9242b22812fc69bd144bfdc94 (patch) | |
tree | 55970bbdf3a0e2119e44e7d21796c48598f90b12 /drivers/pmdomain/governor.c | |
parent | thermal: sysfs: Add sanity checks for trip temperature and hysteresis (diff) | |
download | linux-15cb56bd529868d9242b22812fc69bd144bfdc94.tar.xz linux-15cb56bd529868d9242b22812fc69bd144bfdc94.zip |
thermal: gov_bang_bang: Adjust states of all uninitialized instances
If a cooling device is registered after a thermal zone it should be
bound to and the trip point it should be bound to has already been
crossed by the zone temperature on the way up, the cooling device's
state may need to be adjusted, but the Bang-bang governor will not
do that because its .manage() callback only looks at thermal instances
for trip points whose thresholds are below or at the zone temperature.
Address this by updating bang_bang_manage() to look at all of the
uninitialized thermal instances and setting their target states in
accordance with the position of the zone temperature with respect to
the threshold of the given trip point.
Fixes: 5f64b4a1ab1b ("thermal: gov_bang_bang: Add .manage() callback")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/6103874.lOV4Wx5bFT@rjwysocki.net
Diffstat (limited to 'drivers/pmdomain/governor.c')
0 files changed, 0 insertions, 0 deletions