]> git.ipfire.org Git - thirdparty/linux.git/commit
thermal: core: Separate thermal zone governor initialization
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Oct 2024 22:20:56 +0000 (00:20 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Oct 2024 12:48:42 +0000 (14:48 +0200)
commitaf73d53e97ca5972e93ed481745d25741fa3af65
treee714e3b6a23d23d16a2661e1b50e90a4cd2f93cf
parenta5a98a786e5e31e85a69d30935254e8730734706
thermal: core: Separate thermal zone governor initialization

In preparation for a subsequent change that will switch over the thermal
core to using a mutex guard for managing thermal_governor_lock, move
the code running in thermal_zone_device_register_with_trips() under that
lock into a separate function called thermal_zone_init_governor().

While at it, drop a useless comment.

No intentional functional impact.

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