Skip to content

Commit 4d584ef

Browse files
committed
cpufreq: scpi: 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. Acked-by: Sudeep Holla <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent e96c215 commit 4d584ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/cpufreq/scpi-cpufreq.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ static int scpi_cpufreq_init(struct cpufreq_policy *policy)
163163

164164
policy->fast_switch_possible = false;
165165

166-
dev_pm_opp_of_register_em(cpu_dev, policy->cpus);
167-
168166
return 0;
169167

170168
out_free_cpufreq_table:
@@ -200,6 +198,7 @@ static struct cpufreq_driver scpi_cpufreq_driver = {
200198
.init = scpi_cpufreq_init,
201199
.exit = scpi_cpufreq_exit,
202200
.target_index = scpi_cpufreq_set_target,
201+
.register_em = cpufreq_register_em_with_opp,
203202
};
204203

205204
static int scpi_cpufreq_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)