diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-04-19 15:17:21 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-04-19 15:17:21 +0200 |
commit | 5c897a9a1237155822183b8979005d06c14a996a (patch) | |
tree | 0570a019265465684719d0f66956e9e53636d8ff /drivers/thermal/thermal_debugfs.c | |
parent | b552f63cd43735048bbe9bfbb7a9dcfce166fbdd (diff) | |
parent | 0dbf608717b2560ec23916dc5a7f3b011f8cd1db (diff) |
Merge back earlier thermal control material for v6.10.
Diffstat (limited to 'drivers/thermal/thermal_debugfs.c')
-rw-r--r-- | drivers/thermal/thermal_debugfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/thermal/thermal_debugfs.c b/drivers/thermal/thermal_debugfs.c index d78d54ae2605..40ea0071a691 100644 --- a/drivers/thermal/thermal_debugfs.c +++ b/drivers/thermal/thermal_debugfs.c @@ -745,7 +745,7 @@ static void tze_seq_stop(struct seq_file *s, void *v) static int tze_seq_show(struct seq_file *s, void *v) { struct thermal_zone_device *tz = s->private; - struct thermal_trip *trip; + struct thermal_trip_desc *td; struct tz_episode *tze; const char *type; int trip_id; @@ -758,7 +758,9 @@ static int tze_seq_show(struct seq_file *s, void *v) seq_printf(s, "| trip | type | temp(°mC) | hyst(°mC) | duration | avg(°mC) | min(°mC) | max(°mC) |\n"); - for_each_trip(tz, trip) { + for_each_trip_desc(tz, td) { + const struct thermal_trip *trip = &td->trip; + /* * There is no possible mitigation happening at the * critical trip point, so the stats will be always |