diff options
| author | Guenter Roeck <[email protected]> | 2022-11-10 15:24:56 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2022-11-14 18:04:37 +0000 |
| commit | 1c439dec359caa225c7752334c7a14ef9e3344c7 (patch) | |
| tree | bedb8f0bd4a8618abce95337dfe56ee0c6924f4c /tools/perf/scripts/python | |
| parent | thermal/core: Move parameter validation from __thermal_zone_get_temp to therm... (diff) | |
| download | kernel-1c439dec359caa225c7752334c7a14ef9e3344c7.tar.gz kernel-1c439dec359caa225c7752334c7a14ef9e3344c7.zip | |
thermal/core: Introduce locked version of thermal_zone_device_update
In thermal_zone_device_set_mode(), the thermal zone mutex is released only
to be reacquired in the subsequent call to thermal_zone_device_update().
Introduce __thermal_zone_device_update(), which is similar to
thermal_zone_device_update() but has to be called with the thermal device
mutex held. Call the new function from thermal_zone_device_set_mode()
to avoid the extra thermal device mutex release/acquire sequence in that
function.
With the new function in place, re-implement thermal_zone_device_update()
as wrapper around __thermal_zone_device_update() to acquire and release
the thermal device mutex.
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
