projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
361a172
)
cpufreq: qcom-cpufreq-hw: Use .register_em() to register with energy model
author
Viresh Kumar
<viresh.kumar@linaro.org>
Tue, 10 Aug 2021 06:54:36 +0000
(12:24 +0530)
committer
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 12 Aug 2021 04:24:08 +0000
(09:54 +0530)
Set the newly added .register_em() callback with
cpufreq_register_em_with_opp() to register with the EM core.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-hw.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/qcom-cpufreq-hw.c
b/drivers/cpufreq/qcom-cpufreq-hw.c
index f86859bf76f11d9f68b8d64a7b33ab75e274f3d5..c2e71c430fbf09c84f5c84ac10cd776cf6e100fd 100644
(file)
--- a/
drivers/cpufreq/qcom-cpufreq-hw.c
+++ b/
drivers/cpufreq/qcom-cpufreq-hw.c
@@
-362,8
+362,6
@@
static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy)
goto error;
}
- dev_pm_opp_of_register_em(cpu_dev, policy->cpus);
-
if (policy_has_boost_freq(policy)) {
ret = cpufreq_enable_boost_support();
if (ret)
@@
-412,6
+410,7
@@
static struct cpufreq_driver cpufreq_qcom_hw_driver = {
.get = qcom_cpufreq_hw_get,
.init = qcom_cpufreq_hw_cpu_init,
.exit = qcom_cpufreq_hw_cpu_exit,
+ .register_em = cpufreq_register_em_with_opp,
.fast_switch = qcom_cpufreq_hw_fast_switch,
.name = "qcom-cpufreq-hw",
.attr = qcom_cpufreq_hw_attr,