PM: EM: Use the new .get_cost() callback while registering EM
authorLukasz Luba <lukasz.luba@arm.com>
Mon, 21 Mar 2022 09:57:24 +0000 (09:57 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Apr 2022 14:26:17 +0000 (16:26 +0200)
commit91362463114eb63ead5f02c11d58c46064c339e7
tree74b592707a89decd564cc2a6d91c5b63421662a2
parentfc3a9a9858478ab5f8441765a3f9552a0ceba10c
PM: EM: Use the new .get_cost() callback while registering EM

The Energy Model (EM) allows to provide the 'cost' values when the device
driver provides the .get_cost() optional callback. This removes
restriction which is in the EM calculation function of the 'cost'
for each performance state. Now, the driver is in charge of providing
the right values which are then used by Energy Aware Scheduler.

Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Ionela Voinescu <ionela.voinescu@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/energy_model.c