diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-10-04 22:33:28 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-10-22 13:07:47 +0300 |
commit | c4cd42ebd32b57841a0dba4b296692d201802618 (patch) | |
tree | 2156b14c0efbc2acf5e647cfa7c3db88cb1b7ec6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | fa4f9c967969cb04f9a37d567ecd9e1db9e9098f (diff) | |
download | linux-c4cd42ebd32b57841a0dba4b296692d201802618.tar.xz |
thermal: core: Update thermal zones after cooling device binding
If a new cooling device is registered and it is bound to at least one
trip point in a given thermal zone, that thermal zone needs to be
updated via __thermal_zone_device_update().
Instead of doing this with the help of the need_update atomic field in
struct thermal_zone_device, which is not particularly straightforward,
make __thermal_zone_cdev_bind() return a bool value indicating whether
or not the given thermal zone needs to be updated because a new cooling
device has been bound to it and update thermal_zone_cdev_bind() to
call __thermal_zone_device_update() when this value is "true".
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/2226302.Icojqenx9y@rjwysocki.net
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions