Commit 6e77f2b0 authored by Lukasz Luba's avatar Lukasz Luba Committed by Carlos Llamas
Browse files

UPSTREAM: PM: EM: Add em_dev_compute_costs()



The device drivers can modify EM at runtime by providing a new EM table.
The EM is used by the EAS and the em_perf_state::cost stores
pre-calculated value to avoid overhead. This patch provides the API for
device drivers to calculate the cost values properly (and not duplicate
the same code).

Reviewed-by: default avatarDietmar Eggemann <dietmar.eggemann@arm.com>
Tested-by: default avatarDietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: default avatarLukasz Luba <lukasz.luba@arm.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>

(cherry picked from commit 22ea0284)
Signed-off-by: default avatarLukasz Luba <lukasz.luba@arm.com>
Change-Id: I9c000594674061073ff3a7f3eccbb84204ae59b7
parent 3a759c56
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment