Skip to content

Commit 2516d67

Browse files
deggemanvireshk
authored andcommitted
cpufreq: arm_big_little: 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 the arm_big_little CPUFreq driver, hence ensuring interested subsystems (the task scheduler, for example) can make use of that information when available. Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com> Signed-off-by: Quentin Perret <quentin.perret@arm.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent 6915d7a commit 2516d67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/cpufreq/arm_big_little.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,8 @@ static int bL_cpufreq_init(struct cpufreq_policy *policy)
487487
policy->cpuinfo.transition_latency =
488488
arm_bL_ops->get_transition_latency(cpu_dev);
489489

490+
dev_pm_opp_of_register_em(policy->cpus);
491+
490492
if (is_bL_switching_enabled())
491493
per_cpu(cpu_last_req_freq, policy->cpu) = clk_get_cpu_rate(policy->cpu);
492494

0 commit comments

Comments
 (0)