Skip to content

Commit 1058d1e

Browse files
Matthias Kaehlckevireshk
authored andcommitted
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>
1 parent 3c42985 commit 1058d1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/cpufreq/mediatek-cpufreq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ static int mtk_cpufreq_init(struct cpufreq_policy *policy)
465465
policy->driver_data = info;
466466
policy->clk = info->cpu_clk;
467467

468+
dev_pm_opp_of_register_em(policy->cpus);
469+
468470
return 0;
469471
}
470472

0 commit comments

Comments
 (0)