x86/idle: Cleanup idle_setup()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 29 Feb 2024 14:23:40 +0000 (15:23 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 4 Mar 2024 16:39:24 +0000 (17:39 +0100)
commitf3d7eab7be871d948d896e7021038b092ece687e
treec9b20f2fc504a201cd0ef9895a6bc772f8b834c5
parent0ab562875c01c91ec8167f8f6593ea61e510fd0a
x86/idle: Cleanup idle_setup()

Updating the static call for x86_idle() from idle_setup() is
counter-intuitive.

Let select_idle_routine() handle it like the other idle choices, which
allows to simplify the idle selection later on.

While at it rewrite comments and return a proper error code and not -1.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240229142248.455616019@linutronix.de
arch/x86/kernel/process.c