Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dietmar Eggemann and committed by
Viresh Kumar
2516d670 6915d7ad

+2
+2
drivers/cpufreq/arm_big_little.c
··· 487 487 policy->cpuinfo.transition_latency = 488 488 arm_bL_ops->get_transition_latency(cpu_dev); 489 489 490 + dev_pm_opp_of_register_em(policy->cpus); 491 + 490 492 if (is_bL_switching_enabled()) 491 493 per_cpu(cpu_last_req_freq, policy->cpu) = clk_get_cpu_rate(policy->cpu); 492 494