summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/qcom-cpufreq-hw.c
diff options
context:
space:
mode:
authorMatthias Kaehlcke2019-02-05 18:52:24 +0100
committerViresh Kumar2019-02-08 05:07:31 +0100
commitdab535052f67db0ff48b1b23e714b58650d1a787 (patch)
treeb8e2fe0f8b95e045b5184c6dcb3ecdfca3d3f331 /drivers/cpufreq/qcom-cpufreq-hw.c
parentMerge branch 'opp/power' into cpufreq/qcom-hw (diff)
downloadkernel-qcow2-linux-dab535052f67db0ff48b1b23e714b58650d1a787.tar.gz
kernel-qcow2-linux-dab535052f67db0ff48b1b23e714b58650d1a787.tar.xz
kernel-qcow2-linux-dab535052f67db0ff48b1b23e714b58650d1a787.zip
cpufreq: qcom-hw: Register an Energy Model
Try and register an Energy Model from qcom-cpufreq-hw to allow interested sub-systems like the task scheduler to use the provided information. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> [ Viresh: Rebased over cpufreq related changes ] Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/qcom-cpufreq-hw.c')
-rw-r--r--drivers/cpufreq/qcom-cpufreq-hw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c
index 72223536ca4e..c647cfb1f5e6 100644
--- a/drivers/cpufreq/qcom-cpufreq-hw.c
+++ b/drivers/cpufreq/qcom-cpufreq-hw.c
@@ -231,6 +231,8 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy)
goto error;
}
+ dev_pm_opp_of_register_em(policy->cpus);
+
policy->fast_switch_possible = true;
return 0;