]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: core: Add and use thermal zone guard
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Oct 2024 22:05:25 +0000 (00:05 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 23 Oct 2024 09:56:19 +0000 (11:56 +0200)
commitcba00d16a2b0b0cfc8266124266ed23ab9eae918
tree7e6252c801a6599c4f92b4b4775015d5e3e72ef4
parent17f76be51c52338d9632070cce2b181a7517f03d
thermal: core: Add and use thermal zone guard

Add and use a guard for thermal zone locking.

This allows quite a few error code paths to be simplified among
other things and brings in a noticeable code size reduction for
a good measure.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/1930069.tdWV9SEqCh@rjwysocki.net
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
drivers/thermal/thermal_core.c
drivers/thermal/thermal_core.h
drivers/thermal/thermal_debugfs.c
drivers/thermal/thermal_helpers.c
drivers/thermal/thermal_hwmon.c
drivers/thermal/thermal_netlink.c
drivers/thermal/thermal_sysfs.c
drivers/thermal/thermal_trip.c