]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal/debugfs: Do not extend mitigation episodes beyond system resume
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 May 2024 14:53:47 +0000 (16:53 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Jun 2024 19:04:00 +0000 (21:04 +0200)
commit9b73b5052ae841037682da93a17f80f8ed57788d
treeb90191214a7b72d84a908ad9081cea29fbaa9421
parent8b95bed0cec98c9ff7a72acd6227c427a2b4f0a9
thermal/debugfs: Do not extend mitigation episodes beyond system resume

Because thermal zone handling by the thermal core is started from
scratch during resume from system-wide suspend, prevent the debug
code from extending mitigation episodes beyond that point by ending
the mitigation episode currently in progress, if any, for each thermal
zone.

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