diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-08-17 12:23:32 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-08-17 12:23:32 +0300 |
commit | 9a99a996d1ec53819580eba93d60b38d72befe3d (patch) | |
tree | 89f2f644d0bae3f74bb947df494a24bec3986072 /include/linux/thermal.h | |
parent | bc840ea5f9a98cfab61f6f8f70a73dac43db27d0 (diff) | |
download | linux-9a99a996d1ec53819580eba93d60b38d72befe3d.tar.xz |
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>
Diffstat (limited to 'include/linux/thermal.h')
-rw-r--r-- | include/linux/thermal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 87837094d549..4d40bfa14cdd 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -323,6 +323,10 @@ int thermal_zone_unbind_cooling_device(struct thermal_zone_device *, int, struct thermal_cooling_device *); void thermal_zone_device_update(struct thermal_zone_device *, enum thermal_notify_event); +void thermal_zone_device_exec(struct thermal_zone_device *tz, + void (*cb)(struct thermal_zone_device *, + unsigned long), + unsigned long data); struct thermal_cooling_device *thermal_cooling_device_register(const char *, void *, const struct thermal_cooling_device_ops *); |