thermal: devfreq_cooling: remove old power model and use EM
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 10 Dec 2020 14:30:13 +0000 (14:30 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 11 Dec 2020 13:10:44 +0000 (14:10 +0100)
commit615510fe13bd2434610193f1acab53027d5146d6
tree897f8b7738a480a03702144b6ba872264c3e5c36
parent84e0d87c9944eb36ae6037af5cb6905f67c074c5
thermal: devfreq_cooling: remove old power model and use EM

Remove old power model and use new Energy Model to calculate the power
budget. It drops static + dynamic power calculations and power table
in order to use Energy Model performance domain data. This model
should be easy to use and could find more users. It is also less
complicated to setup the needed structures.

Reviewed-by: Ionela Voinescu <ionela.voinescu@arm.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201210143014.24685-5-lukasz.luba@arm.com
drivers/thermal/devfreq_cooling.c
include/linux/devfreq_cooling.h