Skip to content

Commit

Permalink
cpufreq: mediatek: Register an Energy Model
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthias Kaehlcke authored and Viresh Kumar committed Feb 7, 2019
1 parent 3c42985 commit 1058d1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/cpufreq/mediatek-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1058d1e

Please sign in to comment.