cpufreq: mediatek: Register an Energy Model

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>
This commit is contained in:
Matthias Kaehlcke 2019-02-06 10:50:04 -08:00 committed by Viresh Kumar
parent 3c429851f9
commit 1058d1efbc
1 changed files with 2 additions and 0 deletions

View 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;
}