summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYangtao Li <tiny.windzz@gmail.com>2019-02-06 23:35:50 -0500
committerViresh Kumar <viresh.kumar@linaro.org>2019-02-07 10:07:36 +0530
commita9a744dd5b82843a9c99d9f97794fb51bc2ed8dd (patch)
treed948bf98817b2ae663c21eddba9e866c701b587e
parent3ad63a6b1b3e770f9af63d938efe0212f3d95d6d (diff)
downloadlinux-a9a744dd5b82843a9c99d9f97794fb51bc2ed8dd.tar.bz2
cpufreq: OMAP: Register an Energy Model
Try and register an Energy Model from omap-cpufreq.c to allow interested subsystems like the task scheduler to use the provided information. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
-rw-r--r--drivers/cpufreq/omap-cpufreq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c
index 71e81bbf031b..68052b74d28f 100644
--- a/drivers/cpufreq/omap-cpufreq.c
+++ b/drivers/cpufreq/omap-cpufreq.c
@@ -133,8 +133,10 @@ static int omap_cpu_init(struct cpufreq_policy *policy)
/* FIXME: what's the actual transition time? */
result = cpufreq_generic_init(policy, freq_table, 300 * 1000);
- if (!result)
+ if (!result) {
+ dev_pm_opp_of_register_em(policy->cpus);
return 0;
+ }
freq_table_free();
fail: