PM / EM: update callback structure and add device pointer
authorLukasz Luba <lukasz.luba@arm.com>
Wed, 27 May 2020 09:58:49 +0000 (10:58 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Jun 2020 15:14:07 +0000 (17:14 +0200)
commitd0351cc3b0f57214d157e4d589564730af2aedae
tree531c25149cf9c2305f2d3a20c5d594b0114ae12e
parent7d9895c7fbfc9c70afce7029b7de0f3f974adb88
PM / EM: update callback structure and add device pointer

The Energy Model framework is going to support devices other that CPUs. In
order to make this happen change the callback function and add pointer to
a device as an argument.

Update the related users to use new function and new callback from the
Energy Model.

Acked-by: Quentin Perret <qperret@google.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/scmi-cpufreq.c
drivers/opp/of.c
include/linux/energy_model.h
kernel/power/energy_model.c