cpufreq: dt: Register an Energy Model
authorQuentin Perret <quentin.perret@arm.com>
Mon, 4 Feb 2019 11:09:49 +0000 (11:09 +0000)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 7 Feb 2019 04:25:11 +0000 (09:55 +0530)
commit76d004bf72c9c7bcbcb9ff092898530cedbca296
tree234ea4cceec9446a30ea14b47a3cb5a48fcac5b8
parenta4f342b9607d8c2034d3135cbbb11b4028be3678
cpufreq: dt: Register an Energy Model

Now that PM_OPP provides a helper function to estimate the power
consumed by CPUs, make sure to try and register an Energy Model (EM)
from cpufreq-dt, hence ensuring interested subsystems (the task
scheduler, for example) can make use of that information when available.

Signed-off-by: Quentin Perret <quentin.perret@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq-dt.c