thermal: core: Clean up thermal_list_lock locking
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 22 Mar 2023 19:34:12 +0000 (20:34 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 3 Apr 2023 18:40:21 +0000 (20:40 +0200)
commitcd246fa969ec9f31a244f4056361c694ca8d99d3
tree8330313458dd13d5e240ec26608a14e91edcf373
parent0c7d069297a098af05f9ecc130c4d6f1973bfed7
thermal: core: Clean up thermal_list_lock locking

Once thermal_list_lock has been acquired in
__thermal_cooling_device_register(), it is not necessary to drop it
and take it again until all of the thermal zones have been updated,
so change the code accordingly.

No expected functional impact.

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