]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: core: Introduce thermal_cdev_update_nocheck()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Oct 2024 22:16:54 +0000 (00:16 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 23 Oct 2024 09:57:11 +0000 (11:57 +0200)
commitc597b4e74b124aebf7e3d3f7907e2d4779d870e3
tree76d993cd7f750df344ea8d35d8fd68d4b3692d1b
parentc690dce5dceef1d2818c52f3df2d3511f028632f
thermal: core: Introduce thermal_cdev_update_nocheck()

Three thermal governors call __thermal_cdev_update() under the
cdev lock without doing any checks, so in order to reduce the
related code duplication, introduce a new helper function called
thermal_cdev_update_nocheck() for them and make them use it.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/1835097.VLH7GnMWUR@rjwysocki.net
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
drivers/thermal/gov_bang_bang.c
drivers/thermal/gov_fair_share.c
drivers/thermal/gov_power_allocator.c
drivers/thermal/thermal_core.h
drivers/thermal/thermal_helpers.c