Skip to contentSkip to conversation

cpufreq: OMAP: Register an Energy Model

PATCH Applied Yangtao Li 1 participant 1 message Feb 7, 2019 CPU frequency scaling framework

lore
Share & tools
lore

Yangtao Li

author
#0 lore raw

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

---
 drivers/cpufreq/omap-cpufreq.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/cpufreq/omap-cpufreq.c +3 -1
index 71e81bbf031b..68052b74d28f 100644
@@ -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:
Signature · 1 line
2.17.0