thermal: gov_power_allocator: Support new update callback of weights
authorLukasz Luba <lukasz.luba@arm.com>
Wed, 20 Dec 2023 23:17:53 +0000 (23:17 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 29 Dec 2023 17:01:01 +0000 (18:01 +0100)
commita3cd6db4cc2ed70fc3468cdb5eb20745e7fefba9
treec9caa7d11209e83ea86486ff9c5c788f948fcadb
parentbfc57bd1685981730bfe9802d9de7603a0a43bc4
thermal: gov_power_allocator: Support new update callback of weights

When the thermal instance's weight is updated from the sysfs the governor
update_tz() callback is triggered. Implement proper reaction to this
event in the IPA, which would save CPU cycles spent in throttle().
This will speed-up the main throttle() IPA function and clean it up
a bit.

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