diff options
author | Quentin Perret <quentin.perret@arm.com> | 2019-02-04 11:09:50 +0000 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2019-02-07 09:55:11 +0530 |
commit | 6915d7ad2105447776aa1a2ee83170f98de0a4e5 (patch) | |
tree | bd732466e17c0cb6a44e4489c3c6aedbbfd26bf6 /drivers/cpufreq/scpi-cpufreq.c | |
parent | 76d004bf72c9c7bcbcb9ff092898530cedbca296 (diff) | |
download | linux-6915d7ad2105447776aa1a2ee83170f98de0a4e5.tar.bz2 |
cpufreq: scpi: 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 scpi-cpufreq, 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/scpi-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/scpi-cpufreq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/cpufreq/scpi-cpufreq.c b/drivers/cpufreq/scpi-cpufreq.c index 87a98ec77773..c7e177011cff 100644 --- a/drivers/cpufreq/scpi-cpufreq.c +++ b/drivers/cpufreq/scpi-cpufreq.c @@ -170,6 +170,9 @@ static int scpi_cpufreq_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = latency; policy->fast_switch_possible = false; + + dev_pm_opp_of_register_em(policy->cpus); + return 0; out_free_cpufreq_table: |