Skip to content

Commit

Permalink
cpufreq: qcom-cpufreq-hw: Use .register_em() to register with energy …
Browse files Browse the repository at this point in the history
…model

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>
  • Loading branch information
Viresh Kumar committed Aug 12, 2021
1 parent 361a172 commit e96c215
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/cpufreq/qcom-cpufreq-hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e96c215

Please sign in to comment.