drivers: thermal: step_wise: avoid throttling at hysteresis temperature after droppin...
authorSerge Schneider <serge@raspberrypi.org>
Tue, 2 Oct 2018 10:14:15 +0000 (11:14 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:52 +0000 (16:03 +0000)
Signed-off-by: Serge Schneider <serge@raspberrypi.org>
drivers/thermal/gov_step_wise.c

index 9c8d615..629f02f 100644 (file)
@@ -153,7 +153,7 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip)
                 */
                if (tz->temperature >= trip_temp ||
                   (tz->temperature >= hyst_temp &&
-                  old_target != THERMAL_NO_TARGET)) {
+                  old_target == instance->upper)) {
                        throttle = true;
                        trace_thermal_zone_trip(tz, trip, trip_type);
                }