thermal: gov_power_allocator: Move memory allocation out of throttle()
authorLukasz Luba <lukasz.luba@arm.com>
Wed, 20 Dec 2023 23:17:49 +0000 (23:17 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 29 Dec 2023 17:01:00 +0000 (18:01 +0100)
commit912e97c67cc3f333c4c5df8f51498c651792e658
tree5fcd49493f484f5ae748da6ac69d44676da4cace
parent792c3dc08ddcf29a514156bb72b3d2ad4998c69f
thermal: gov_power_allocator: Move memory allocation out of throttle()

The new thermal callback allows to react to the change of cooling
instances in the thermal zone. Move the memory allocation to that new
callback and save CPU cycles in the throttle() code path.

Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/gov_power_allocator.c