We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb81dee commit 0ab5628Copy full SHA for 0ab5628
arch/x86/kernel/process.c
@@ -910,11 +910,13 @@ static __cpuidle void mwait_idle(void)
910
911
void select_idle_routine(const struct cpuinfo_x86 *c)
912
{
913
-#ifdef CONFIG_SMP
914
- if (boot_option_idle_override == IDLE_POLL && smp_num_siblings > 1)
915
- pr_warn_once("WARNING: polling idle and HT enabled, performance may degrade\n");
916
-#endif
917
- if (x86_idle_set() || boot_option_idle_override == IDLE_POLL)
+ if (boot_option_idle_override == IDLE_POLL) {
+ if (IS_ENABLED(CONFIG_SMP) && smp_num_siblings > 1)
+ pr_warn_once("WARNING: polling idle and HT enabled, performance may degrade\n");
+ return;
+ }
918
+
919
+ if (x86_idle_set())
920
return;
921
922
if (prefer_mwait_c1_over_halt(c)) {
0 commit comments