Skip to content

Commit

Permalink
x86: de-duplicate MONITOR/MWAIT CPUID-related definitions
Browse files Browse the repository at this point in the history
As of 724b55f ("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>
  • Loading branch information
jbeulich committed Nov 3, 2021
1 parent 9f8434d commit e41a5ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions xen/arch/x86/acpi/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 0 additions & 4 deletions xen/include/asm-x86/cpufeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
#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

Expand Down

0 comments on commit e41a5ba

Please sign in to comment.