diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2019-02-06 10:50:04 -0800 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2019-02-07 09:58:32 +0530 |
commit | 1058d1efbc84e3b48d2130f46a149cea178b28a1 (patch) | |
tree | 6ca5a44a88d019a5b3369cd86182624f97fe78fe /drivers/cpufreq/mediatek-cpufreq.c | |
parent | 3c429851f9986103ce99c5747a795c6a6c572310 (diff) | |
download | linux-1058d1efbc84e3b48d2130f46a149cea178b28a1.tar.gz linux-1058d1efbc84e3b48d2130f46a149cea178b28a1.tar.bz2 linux-1058d1efbc84e3b48d2130f46a149cea178b28a1.zip |
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>
Diffstat (limited to 'drivers/cpufreq/mediatek-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/mediatek-cpufreq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c index eb8920d39818..5250df762814 100644 --- a/drivers/cpufreq/mediatek-cpufreq.c +++ b/drivers/cpufreq/mediatek-cpufreq.c @@ -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; } |