Skip to content

Commit 77a25e0

Browse files
XECDesignpopcornmix
authored andcommitted
drivers: thermal: step_wise: avoid throttling at hysteresis temperature after dropping below it
Signed-off-by: Serge Schneider <[email protected]>
1 parent 58a07b9 commit 77a25e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/step_wise.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip)
167167
*/
168168
if (tz->temperature >= trip_temp ||
169169
(tz->temperature >= hyst_temp &&
170-
old_target != THERMAL_NO_TARGET)) {
170+
old_target == instance->upper)) {
171171
throttle = true;
172172
trace_thermal_zone_trip(tz, trip, trip_type);
173173
}

0 commit comments

Comments
 (0)