Skip to content

Commit 6915d7a

Browse files
Quentin Perretvireshk
authored andcommitted
cpufreq: scpi: Register an Energy Model
Now that PM_OPP provides a helper function to estimate the power consumed by CPUs, make sure to try and register an Energy Model (EM) from scpi-cpufreq, hence ensuring interested subsystems (the task scheduler, for example) can make use of that information when available. Signed-off-by: Quentin Perret <quentin.perret@arm.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent 76d004b commit 6915d7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/cpufreq/scpi-cpufreq.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ static int scpi_cpufreq_init(struct cpufreq_policy *policy)
170170
policy->cpuinfo.transition_latency = latency;
171171

172172
policy->fast_switch_possible = false;
173+
174+
dev_pm_opp_of_register_em(policy->cpus);
175+
173176
return 0;
174177

175178
out_free_cpufreq_table:

0 commit comments

Comments
 (0)