OPP: refactor dev_pm_opp_of_register_em() and update related drivers
authorLukasz Luba <lukasz.luba@arm.com>
Wed, 27 May 2020 09:58:54 +0000 (10:58 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Jun 2020 15:16:42 +0000 (17:16 +0200)
commit0e0ffa855d1590e54ec0033404a49e2e57e294fe
tree2e313af4cb629121ac00a7eab7dfe5715a6f2ff0
parent7b7570ad0d76410bdefe61d77aa624900e2396ce
OPP: refactor dev_pm_opp_of_register_em() and update related drivers

The Energy Model framework supports not only CPU devices. Drop the CPU
specific interface with cpumask and add struct device. Add also a return
value, user might use it. This new interface provides easy way to create
a simple Energy Model, which then might be used by e.g. thermal subsystem.

Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq-dt.c
drivers/cpufreq/imx6q-cpufreq.c
drivers/cpufreq/mediatek-cpufreq.c
drivers/cpufreq/omap-cpufreq.c
drivers/cpufreq/qcom-cpufreq-hw.c
drivers/cpufreq/scpi-cpufreq.c
drivers/cpufreq/vexpress-spc-cpufreq.c
drivers/opp/of.c
include/linux/pm_opp.h