thermal: core: Introduce thermal_zone_device_exec()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2023 09:23:32 +0000 (11:23 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2023 09:23:32 +0000 (11:23 +0200)
commit9a99a996d1ec53819580eba93d60b38d72befe3d
tree89f2f644d0bae3f74bb947df494a24bec3986072
parentbc840ea5f9a98cfab61f6f8f70a73dac43db27d0
thermal: core: Introduce thermal_zone_device_exec()

Introduce a new helper function, thermal_zone_device_exec(), that can
be used by drivers to run a given callback routine under the zone lock.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_core.c
include/linux/thermal.h