From: Yangtao Li Date: Thu, 7 Feb 2019 04:35:50 +0000 (-0500) Subject: cpufreq: OMAP: Register an Energy Model X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a9a744dd5b82843a9c99d9f97794fb51bc2ed8dd;p=linux.git 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 Signed-off-by: Viresh Kumar --- diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index 71e81bbf031b2..68052b74d28fc 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -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: