thermal: core: Move power_actor_set_power into IPA
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 15 Oct 2020 11:24:41 +0000 (12:24 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 27 Oct 2020 08:44:32 +0000 (09:44 +0100)
commit345a8af7ea63ac75a9000159d6298769d3d50f91
treedd1df271c1c1a05a698ba048384ae0109c3b6865
parent87d2380260524e55e090e14012c1b07c1f6d4096
thermal: core: Move power_actor_set_power into IPA

Since the power actor section has one function power_actor_set_power()
move it into Intelligent Power Allocation (IPA). There is no other user
of that helper function. It would also allow to remove the check of
cdev_is_power_actor() because the code which calls it in IPA already does
the needed check. Make the function static since only IPA use it.

Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201015112441.4056-5-lukasz.luba@arm.com
drivers/thermal/gov_power_allocator.c
drivers/thermal/thermal_core.c
drivers/thermal/thermal_core.h