PM: EM: Support late CPUs booting and capacity adjustment
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 8 Feb 2024 11:55:48 +0000 (11:55 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Feb 2024 14:00:31 +0000 (15:00 +0100)
commite3f1164fc9ee8430b3a51e400abfa1b67664f538
tree79ccb93bf711ddff0ecb7e6e219cf5adabfc3331
parent5a367f7b7014af86bd1ac0865a42db55187dbd3c
PM: EM: Support late CPUs booting and capacity adjustment

The patch adds needed infrastructure to handle the late CPUs boot, which
might change the previous CPUs capacity values. With this changes the new
CPUs which try to register EM will trigger the needed re-calculations for
other CPUs EMs. Thanks to that the em_per_state::performance values will
be aligned with the CPU capacity information after all CPUs finish the
boot and EM registrations.

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