]> xenbits.xensource.com Git - xen.git/commitdiff
x86: de-duplicate MONITOR/MWAIT CPUID-related definitions
authorJan Beulich <jbeulich@suse.com>
Wed, 3 Nov 2021 09:17:47 +0000 (10:17 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 3 Nov 2021 09:17:47 +0000 (10:17 +0100)
As of 724b55f48a6c ("x86: introduce MWAIT-based, ACPI-less CPU idle
driver") they (also) live in asm/mwait.h; no idea how I missed the
duplicates back at the time.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
xen/arch/x86/acpi/lib.c
xen/include/asm-x86/cpufeature.h

index a22414a05c1399f537900f08e403e4688a6ee9ee..b66e7338e74d01d22ddfc46ca600b45179ff22ac 100644 (file)
@@ -24,6 +24,7 @@
 #include <xen/acpi.h>
 #include <asm/apic.h>
 #include <asm/fixmap.h>
+#include <asm/mwait.h>
 
 u32 __read_mostly acpi_smi_cmd;
 u8 __read_mostly acpi_enable_value;
index 802d9257b0bf93bec192758a75147482ad2a0f30..ba0fe7c0aa5f142fb555a4c38755dcafe7f14aba 100644 (file)
 #define cpu_has(c, bit)                test_bit(bit, (c)->x86_capability)
 #define boot_cpu_has(bit)      test_bit(bit, boot_cpu_data.x86_capability)
 
-#define CPUID_MWAIT_LEAF                5
-#define CPUID5_ECX_EXTENSIONS_SUPPORTED 0x1
-#define CPUID5_ECX_INTERRUPT_BREAK      0x2
-
 #define CPUID_PM_LEAF                    6
 #define CPUID6_ECX_APERFMPERF_CAPABILITY 0x1