PM: EM: Split the allocation and initialization of the EM table
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 8 Feb 2024 11:55:41 +0000 (11:55 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Feb 2024 14:00:27 +0000 (15:00 +0100)
commit8552d6820168d6508bd1f7cd49be248dcb74efb3
tree28b8042b917f5a5887510715e1e903348cd95927
parent818867224d41725dcf4abe890d8f24e5d6bd9c67
PM: EM: Split the allocation and initialization of the EM table

Split the process of allocation and data initialization for the EM table.
The upcoming changes for modifiable EM will use it.

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