diff options
author | Quentin Perret <quentin.perret@arm.com> | 2019-02-04 11:09:49 +0000 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2019-02-07 09:55:11 +0530 |
commit | 76d004bf72c9c7bcbcb9ff092898530cedbca296 (patch) | |
tree | 234ea4cceec9446a30ea14b47a3cb5a48fcac5b8 /drivers/cpufreq/cpufreq-dt.c | |
parent | a4f342b9607d8c2034d3135cbbb11b4028be3678 (diff) | |
download | linux-76d004bf72c9c7bcbcb9ff092898530cedbca296.tar.bz2 |
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>
Diffstat (limited to 'drivers/cpufreq/cpufreq-dt.c')
-rw-r--r-- | drivers/cpufreq/cpufreq-dt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index e58bfcb1169e..d74e0402512a 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -280,6 +280,8 @@ static int cpufreq_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = transition_latency; policy->dvfs_possible_from_any_cpu = true; + dev_pm_opp_of_register_em(policy->cpus); + return 0; out_free_cpufreq_table: |