diff options
author | 2024-02-28 23:20:32 +0100 | |
---|---|---|
committer | 2024-03-04 17:39:24 +0100 | |
commit | 35ce64922c8263448e58a2b9e8d15a64e11e9b2d (patch) | |
tree | 48f9c9e832c298fa03e74a9d56ee6c944065c89f /arch/x86/kvm/vmx | |
parent | x86/idle: Let prefer_mwait_c1_over_halt() return bool (diff) | |
download | linux-35ce64922c8263448e58a2b9e8d15a64e11e9b2d.tar.gz linux-35ce64922c8263448e58a2b9e8d15a64e11e9b2d.tar.bz2 linux-35ce64922c8263448e58a2b9e8d15a64e11e9b2d.zip |
x86/idle: Select idle routine only once
The idle routine selection is done on every CPU bringup operation and
has a guard in place which is effective after the first invocation,
which is a pointless exercise.
Invoke it once on the boot CPU and mark the related functions __init.
The guard check has to stay as xen_set_default_idle() runs early.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/87edcu6vaq.ffs@tglx
Diffstat (limited to 'arch/x86/kvm/vmx')
0 files changed, 0 insertions, 0 deletions