diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-01-25 17:54:03 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-01-27 17:11:12 +0300 |
commit | 9e9b7e182cf34ce5e5f50f1fa2470d051e3c8f90 (patch) | |
tree | a3907e8149baab214c0274893e44c04fa9cb57be /tools/perf/scripts/python/export-to-sqlite.py | |
parent | b1bf9dbffc3049ca22ab36cb807b671655a936d0 (diff) | |
download | linux-9e9b7e182cf34ce5e5f50f1fa2470d051e3c8f90.tar.xz |
thermal: intel: int340x: Use zone lock for synchronization
Because the ->get_trip_temp() and ->get_trip_type() thermal zone
callbacks are only invoked from __thermal_zone_get_trip() which is
always called by the thermal core under the zone lock, it is sufficient
for int340x_thermal_update_trips() to acquire the zone lock for mutual
exclusion with those callbacks.
Accordingly, modify int340x_thermal_update_trips() to use the zone lock
instead of the internal trip_mutex and drop the latter which is not
necessary any more.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions