cpufreq: mediatek: Register an Energy Model
authorMatthias Kaehlcke <mka@chromium.org>
Wed, 6 Feb 2019 18:50:04 +0000 (10:50 -0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 7 Feb 2019 04:28:32 +0000 (09:58 +0530)
Try and register an Energy Model from mediatek-cpufreq to allow
interested subsystems like the task scheduler to use the provided
information.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/mediatek-cpufreq.c

index eb8920d..5250df7 100644 (file)
@@ -465,6 +465,8 @@ static int mtk_cpufreq_init(struct cpufreq_policy *policy)
        policy->driver_data = info;
        policy->clk = info->cpu_clk;
 
+       dev_pm_opp_of_register_em(policy->cpus);
+
        return 0;
 }