thermal/debugfs: Print initial trip temperature and hysteresis in tze_seq_show()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 May 2024 15:57:21 +0000 (17:57 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 May 2024 11:00:00 +0000 (13:00 +0200)
commit9e69acc1de306b5243ca2ef8a54242e56d01b8e5
treea00ec79b8cd67881bb46ef2ecf5334de11c51f49
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
thermal/debugfs: Print initial trip temperature and hysteresis in tze_seq_show()

The temperature and hysteresis of a trip point may change during a
mitigation episode it is involved in (it may even become invalid
altogether), so in order to avoid possible confusion related to that,
store the temperature and hysteresis of trip points at the time they
are crossed on the way up and print those values instead of their
current temperature and hysteresis.

Fixes: 7ef01f228c9f ("thermal/debugfs: Add thermal debugfs information for mitigation episodes")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_debugfs.c