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:
3c42985
)
cpufreq: mediatek: Register an Energy Model
author
Matthias Kaehlcke
<mka@chromium.org>
Wed, 6 Feb 2019 18:50:04 +0000
(10:50 -0800)
committer
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 7 Feb 2019 04:28:32 +0000
(09:58 +0530)
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>
drivers/cpufreq/mediatek-cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/mediatek-cpufreq.c
b/drivers/cpufreq/mediatek-cpufreq.c
index
eb8920d
..
5250df7
100644
(file)
--- 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;
}