projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2dea4c
)
cpufreq: imx6q: Register an Energy Model
author
Yangtao Li
<tiny.windzz@gmail.com>
Thu, 7 Feb 2019 04:34:20 +0000
(23:34 -0500)
committer
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 7 Feb 2019 04:37:36 +0000
(10:07 +0530)
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>
drivers/cpufreq/imx6q-cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/imx6q-cpufreq.c
b/drivers/cpufreq/imx6q-cpufreq.c
index
9fedf62
..
73bfd5b
100644
(file)
--- 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;
}