aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm/vmx
diff options
context:
space:
mode:
authorGravatar Thomas Gleixner <tglx@linutronix.de> 2024-02-28 23:20:32 +0100
committerGravatar Borislav Petkov (AMD) <bp@alien8.de> 2024-03-04 17:39:24 +0100
commit35ce64922c8263448e58a2b9e8d15a64e11e9b2d (patch)
tree48f9c9e832c298fa03e74a9d56ee6c944065c89f /arch/x86/kvm/vmx
parentx86/idle: Let prefer_mwait_c1_over_halt() return bool (diff)
downloadlinux-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