x86/cpuidle: really use C1 for "urgent" CPUs
authorJan Beulich <jbeulich@suse.com>
Mon, 22 Jul 2019 09:32:20 +0000 (11:32 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Jul 2019 09:32:20 +0000 (11:32 +0200)
commit1bce2a94e929ddb0aa0ba8222cdaf0fd10ef1821
tree1abc4b4c6c333c4d332c62ec04a16c80661bffd2
parent71d571ddd75f445fc56d67e0620807cbce4c276a
x86/cpuidle: really use C1 for "urgent" CPUs

For one on recent AMD CPUs entering C1 (if available at all) requires
use of MWAIT, while HLT (i.e. default_idle()) would put the processor
into as deep as CC6. And then even on other vendors' CPUs we should
avoid entering default_idle() when the intended state can be reached
by using the active idle driver's facilities.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/acpi/cpu_idle.c
xen/arch/x86/cpu/mwait-idle.c