Skip to content

Commit 5a599e1

Browse files
committed
thermal/debugfs: Allow tze_seq_show() to print statistics for invalid trips
Commit a6258fd ("thermal/debugfs: Make tze_seq_show() skip invalid trips and trips with no stats") modified tze_seq_show() to skip invalid trips, but it overlooked the fact that a trip may become invalid during a mitigation eposide involving it, in which case its statistics should still be reported. For this reason, remove the invalid trip temperature check from the main loop in tze_seq_show(). The trips that have never been valid will still be skipped after this change because there are no statistics to report for them. Fixes: a6258fd ("thermal/debugfs: Make tze_seq_show() skip invalid trips and trips with no stats") Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 9e69acc commit 5a599e1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/thermal/thermal_debugfs.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -802,10 +802,6 @@ static int tze_seq_show(struct seq_file *s, void *v)
802802
const struct thermal_trip *trip = &td->trip;
803803
struct trip_stats *trip_stats;
804804

805-
/* Skip invalid trips. */
806-
if (trip->temperature == THERMAL_TEMP_INVALID)
807-
continue;
808-
809805
/*
810806
* There is no possible mitigation happening at the
811807
* critical trip point, so the stats will be always

0 commit comments

Comments
 (0)