Skip to content

Commit a9a744d

Browse files
TinyWindzzvireshk
authored andcommitted
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. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent 3ad63a6 commit a9a744d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/cpufreq/omap-cpufreq.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,10 @@ static int omap_cpu_init(struct cpufreq_policy *policy)
133133

134134
/* FIXME: what's the actual transition time? */
135135
result = cpufreq_generic_init(policy, freq_table, 300 * 1000);
136-
if (!result)
136+
if (!result) {
137+
dev_pm_opp_of_register_em(policy->cpus);
137138
return 0;
139+
}
138140

139141
freq_table_free();
140142
fail:

0 commit comments

Comments
 (0)