cpufreq: omap: Use .register_em() to register with energy model
Set the newly added .register_em() callback with cpufreq_register_em_with_opp() to register with the EM core. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
parent
3701fd64a3
commit
361a172d23
|
@ -131,7 +131,6 @@ static int omap_cpu_init(struct cpufreq_policy *policy)
|
||||||
|
|
||||||
/* FIXME: what's the actual transition time? */
|
/* FIXME: what's the actual transition time? */
|
||||||
cpufreq_generic_init(policy, freq_table, 300 * 1000);
|
cpufreq_generic_init(policy, freq_table, 300 * 1000);
|
||||||
dev_pm_opp_of_register_em(mpu_dev, policy->cpus);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -150,6 +149,7 @@ static struct cpufreq_driver omap_driver = {
|
||||||
.get = cpufreq_generic_get,
|
.get = cpufreq_generic_get,
|
||||||
.init = omap_cpu_init,
|
.init = omap_cpu_init,
|
||||||
.exit = omap_cpu_exit,
|
.exit = omap_cpu_exit,
|
||||||
|
.register_em = cpufreq_register_em_with_opp,
|
||||||
.name = "omap",
|
.name = "omap",
|
||||||
.attr = cpufreq_generic_attr,
|
.attr = cpufreq_generic_attr,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue