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)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:12:56 +0000 (19:12 +0000)
Signed-off-by: Serge Schneider <serge@raspberrypi.org>
drivers/thermal/gov_step_wise.c

index abe34cf..5c86029 100644 (file)
@@ -155,7 +155,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);
                }