thermal: power allocator: fail binding for non-power actor devices
authorLukasz Luba <lukasz.luba@arm.com>
Tue, 19 Jan 2021 11:41:26 +0000 (11:41 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 19 Jan 2021 21:31:10 +0000 (22:31 +0100)
commit7a583405f24bffdd9f696a8e1b2f02c297245f4d
treee95fb6b8706511bab38b0882c1f04fb823062a17
parent23ff8529ee207c634ce2e170c353938db7aa98a9
thermal: power allocator: fail binding for non-power actor devices

The thermal zone can have cooling devices which are missing power actor
API. This could be due to missing Energy Model for devfreq or cpufreq
cooling device. In this case it is safe to fail the binding rather than
trying to workaround and control the temperature in such thermal zone.

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