thermal: devfreq_cooling: add new registration functions with Energy Model
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 10 Dec 2020 14:30:12 +0000 (14:30 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 11 Dec 2020 13:10:44 +0000 (14:10 +0100)
commit84e0d87c9944eb36ae6037af5cb6905f67c074c5
tree08e3524fc59309c0ba12e95af3cb1d78ab449021
parent229794eee27fddbedd03be5f8b20375a2637ff48
thermal: devfreq_cooling: add new registration functions with Energy Model

The Energy Model (EM) framework supports devices such as Devfreq. Create
new registration function which automatically register EM for the thermal
devfreq_cooling devices. This patch prepares the code for coming changes
which are going to replace old power model with the new EM.

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-4-lukasz.luba@arm.com
drivers/thermal/devfreq_cooling.c
include/linux/devfreq_cooling.h