PM: EM: Extend em_cpufreq_update_efficiencies() argument list
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 8 Feb 2024 11:55:36 +0000 (11:55 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Feb 2024 14:00:22 +0000 (15:00 +0100)
commite7b1cc9a7ea6d7862baac0fd7b145573618727dd
tree1064f95f98d6909e15298651623a1adc9966c599
parent4274521fabee05375d10bea0e36a806ed4ab7b45
PM: EM: Extend em_cpufreq_update_efficiencies() argument list

In order to prepare the code for the modifiable EM perf_state table,
make em_cpufreq_update_efficiencies() take a pointer to the EM table
as its second argument and modify it to use that new argument instead
of the 'table' member of dev->em_pd.

No functional impact.

Reviewed-by: Hongyan Xia <hongyan.xia2@arm.com>
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