thermal: gov_step_wise: Use .manage() callback instead of .throttle()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Apr 2024 16:13:55 +0000 (18:13 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Apr 2024 08:13:53 +0000 (10:13 +0200)
commita6ce8c7da59bbdafcab23b5d26f26865af77a5fa
tree1d6877ff021d5df1f02ce7bf031459a7c73d025f
parentca0e9728d37215afe943d508a1935d13a96ea88e
thermal: gov_step_wise: Use .manage() callback instead of .throttle()

Make the Step-Wise governor use the new .manage() callback instead of
.throttle().

Even though using .throttle() is not particularly problematic for the
Step-Wise governor, using .manage() instead still allows it to reduce
overhead by updating all of the cooling devices once after setting
target values for all of the thermal instances.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/gov_step_wise.c