Skip to content

Commit dbe0a7b

Browse files
committed
Merge tag 'thermal-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull thermal control fix from Rafael Wysocki: "This prevents the thermal debug code from attempting to divide by zero and corrects trip point statistics (Rafael Wysocki)" * tag 'thermal-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: thermal/debugfs: Add missing count increment to thermal_debug_tz_trip_up()
2 parents 3c08ab6 + b552f63 commit dbe0a7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/thermal/thermal_debugfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ void thermal_debug_tz_trip_up(struct thermal_zone_device *tz,
616616
tze->trip_stats[trip_id].timestamp = now;
617617
tze->trip_stats[trip_id].max = max(tze->trip_stats[trip_id].max, temperature);
618618
tze->trip_stats[trip_id].min = min(tze->trip_stats[trip_id].min, temperature);
619+
tze->trip_stats[trip_id].count++;
619620
tze->trip_stats[trip_id].avg = tze->trip_stats[trip_id].avg +
620621
(temperature - tze->trip_stats[trip_id].avg) /
621622
tze->trip_stats[trip_id].count;

0 commit comments

Comments
 (0)