PM: EM: Introduce em_compute_costs()
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 8 Feb 2024 11:55:39 +0000 (11:55 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Feb 2024 14:00:25 +0000 (15:00 +0100)
commitfaf7075b79a259136e2b57ce52b48a7096270e8b
treea07a7c3598250676c312933d66011acf1b32f7e7
parenta3c78778f50c4db6cc0bb6aa2986c0174b1267d0
PM: EM: Introduce em_compute_costs()

Move the EM costs computation code into a new dedicated function,
em_compute_costs(), that can be reused in other places in the future.

This change is not expected to alter the general functionality.

Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Tested-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/energy_model.c