mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
fixup! drivers: thermal: step_wise: avoid throttling at hysteresis temperature after dropping below it
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user