Message ID | 12509184.O9o76ZdvQC@rjwysocki.net |
---|---|
State | New |
Headers | show |
Series | [v1] thermal: trip: Avoid skipping trips in thermal_zone_set_trips() | expand |
Index: linux-pm/drivers/thermal/thermal_trip.c =================================================================== --- linux-pm.orig/drivers/thermal/thermal_trip.c +++ linux-pm/drivers/thermal/thermal_trip.c @@ -82,10 +82,10 @@ void thermal_zone_set_trips(struct therm return; for_each_trip_desc(tz, td) { - if (td->threshold < tz->temperature && td->threshold > low) + if (td->threshold <= tz->temperature && td->threshold > low) low = td->threshold; - if (td->threshold > tz->temperature && td->threshold < high) + if (td->threshold >= tz->temperature && td->threshold < high) high = td->threshold; }