OSDN Git Service

ANDROID: cpufreq: arm_big_little: Register an Energy Model
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Fri, 1 Jun 2018 13:27:24 +0000 (14:27 +0100)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commit0992e1106ecf57153ce17f78bb5861b6d97d34e6
tree97098badd19f994dfc2f61564af3e38c7577fc11
parent5d2837a06acb40d788e5a99837d81513ecb813ce
ANDROID: cpufreq: arm_big_little: Register an Energy Model

The Energy Model framework provides an API to register the active power
of CPUs. This commit calls this API from the scpi-cpufreq driver which
can rely on the power estimation helper provided by PM_OPP.

Todo: Check if driver can handle -EPROBE_DEFER and if the call to
dev_pm_opp_get_opp_count() id realy necessary.

Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
[ Removed the dependency on dev_pm_opp_of_estimate_power() ]
Signed-off-by: Quentin Perret <quentin.perret@arm.com>
Change-Id: Ia808262ef6c9f2cc7819a83e8eb2f602454edfa3
drivers/cpufreq/arm_big_little.c