thermal: power_allocator: Respect upper and lower bounds for cooling device
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 15 Oct 2020 11:24:39 +0000 (12:24 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 27 Oct 2020 08:44:32 +0000 (09:44 +0100)
commit8132df3a06a41823aa370dbb4ff08f48fa07f6df
treed744d659715ecc4496466419ff066f4066198956
parent4ab17ed1318609da5c36cb7e427a1d24e52a7d6f
thermal: power_allocator: Respect upper and lower bounds for cooling device

The thermal cooling device specified in DT might be instantiated for
a thermal zone trip point with a limited set of OPPs to operate on. This
configuration should be supported by Intelligent Power Allocation (IPA),
since it is a standard for other governors. Change the code and allow IPA
to get power value of lower and upper bound set for a given cooling
device.

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-3-lukasz.luba@arm.com
drivers/thermal/gov_power_allocator.c