summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorYangtao Li <tiny.windzz@gmail.com>2019-02-07 07:34:20 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2019-02-07 07:37:36 +0300
commit3ad63a6b1b3e770f9af63d938efe0212f3d95d6d (patch)
tree4eca03ee547c0e23fdac21b4cb2d858208ac7b7e /drivers/cpufreq
parenta2dea4cb907022447298d46b15a5c41f3f9903e6 (diff)
downloadlinux-3ad63a6b1b3e770f9af63d938efe0212f3d95d6d.tar.xz
cpufreq: imx6q: Register an Energy Model
Try and register an Energy Model from imx6q-cpufreq 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>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/imx6q-cpufreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
index 9fedf627e000..73bfd5bc3087 100644
--- a/drivers/cpufreq/imx6q-cpufreq.c
+++ b/drivers/cpufreq/imx6q-cpufreq.c
@@ -210,6 +210,7 @@ static int imx6q_cpufreq_init(struct cpufreq_policy *policy)
policy->clk = clks[ARM].clk;
ret = cpufreq_generic_init(policy, freq_table, transition_latency);
policy->suspend_freq = max_freq;
+ dev_pm_opp_of_register_em(policy->cpus);
return ret;
}