]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: core: Separate code running under thermal_list_lock
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Oct 2024 22:09:18 +0000 (00:09 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 23 Oct 2024 09:56:33 +0000 (11:56 +0200)
commit6f60ae72214bd57b2576c749aca5305eca158dc3
treebfc5006726c4a290e8223ce05b8b1b66c9d41f50
parent57f076664c4debb2fff57e42098698f1993826f4
thermal: core: Separate code running under thermal_list_lock

To prepare for a subsequent change that will switch over the thermal
core to using a mutex guard for thermal_list_lock management, move the
code running under thermal_list_lock during the initialization and
unregistration of cooling devices into separate functions.

While at it, drop some comments that do not add value.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/10572828.nUPlyArG6x@rjwysocki.net
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
drivers/thermal/thermal_core.c