fixup! drivers: thermal: step_wise: avoid throttling at hysteresis temperature after dropping below it

This commit is contained in:
Dom Cobley
2023-03-29 13:11:02 +01:00
parent cb30f58569
commit e7093c80e2

View File

@@ -114,13 +114,12 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip_id
trace_thermal_zone_trip(tz, trip_id, trip.type);
}
tz->ops->get_trip_temp(tz, trip_id, &trip_temp);
hyst_temp = trip_temp;
hyst_temp = trip.temperature;
if (tz->ops->get_trip_hyst) {
tz->ops->get_trip_hyst(tz, trip_id, &hyst_temp);
hyst_temp = trip_temp - hyst_temp;
}
tz->ops->get_trip_type(tz, trip_id, &trip_type);
trip_type = trip.type;
trend = get_tz_trend(tz, trip_id);