]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbd6a1790aae94715cd82ba3b04be6fe29f0740df
tree74b592707a89decd564cc2a6d91c5b63421662a2
parentd8508d7574e132a0de39f9a03fae387f74d5d49c
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