thermal/debugfs: Make tze_seq_show() skip invalid trips and trips with no stats
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 17 Apr 2024 15:51:29 +0000 (17:51 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Apr 2024 18:43:11 +0000 (20:43 +0200)
commita6258fde8de34b2bfd7e1d4e55df261426e49071
tree9876838453ebbf4c08397051d75657e47bdc2aaf
parent8dff6e8438351c627289fd06893c36f3bd9666e5
thermal/debugfs: Make tze_seq_show() skip invalid trips and trips with no stats

Currently, tze_seq_show() output includes all of the trips in the zone
except for critical ones, including invalid trips and trips with no stats
which is confusing.

Make it skip the trips for which there is not mitigation information.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/thermal_debugfs.c