thermal: core: Add upper and lower limits to power_actor_set_power
authorMichael Kao <michael.kao@mediatek.com>
Wed, 7 Oct 2020 02:43:32 +0000 (10:43 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 26 Oct 2020 18:46:35 +0000 (19:46 +0100)
commit4ab17ed1318609da5c36cb7e427a1d24e52a7d6f
tree2049206eb50789f8266cc985369bab4622ac8523
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
thermal: core: Add upper and lower limits to power_actor_set_power

The upper and lower limits of thermal throttle state in the
DT do not apply to the Intelligent Power Allocation (IPA) governor.
Add the clamping for cooling device upper and lower limits in the
power_actor_set_power() used by IPA.

Signed-off-by: Michael Kao <michael.kao@mediatek.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201007024332.30322-1-michael.kao@mediatek.com
drivers/thermal/thermal_core.c