cpufreq: qcom-hw: Register an Energy Model
authorMatthias Kaehlcke <mka@chromium.org>
Tue, 5 Feb 2019 17:52:24 +0000 (09:52 -0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 8 Feb 2019 04:07:31 +0000 (09:37 +0530)
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>
drivers/cpufreq/qcom-cpufreq-hw.c

index 72223536ca4ed92842a4573d750bca532aea2959..c647cfb1f5e60bc73ff06b9d01f8a0a45c643213 100644 (file)
@@ -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;