Skip to contentSkip to conversation

cpufreq: imx6q: Register an Energy Model

PATCH Applied Yangtao Li 2 participants 2 messages Feb 7, 2019

Subsystems (2)
lore
Share & tools
lore

Yangtao Li

author
#0 lore raw

PATCH 1/2 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.

---
 drivers/cpufreq/imx6q-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/imx6q-cpufreq.c +1 -0
index 9fedf627e000..73bfd5bc3087 100644
@@ -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;
 }
Signature · 1 line
2.17.0
maintainer Applied
#1 lore raw
Quoted 14 lines · Yangtao Li

Try and register an Energy Model from imx6q-cpufreq to allow interested subsystems like the task scheduler to use the provided information.

---
 drivers/cpufreq/imx6q-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/imx6q-cpufreq.c +0 -0
index 9fedf627e000..73bfd5bc3087 100644

drivers/cpufreq/imx6q-cpufreq.c static int imx6q_cpufreq_init(struct cpufreq_policy *policy) · line 216

Quoted 7 lines
drivers/cpufreq/imx6q-cpufreq.c +1 -0
@@ -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;
 }

Applied both. Thanks.

Signature · 1 line
viresh