diff options
Diffstat (limited to 'arch/x86/kernel/cpu/acrn.c')
| -rw-r--r-- | arch/x86/kernel/cpu/acrn.c | 12 | 
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/x86/kernel/cpu/acrn.c b/arch/x86/kernel/cpu/acrn.c index 1da9b1c9a2db..0b2c03943ac6 100644 --- a/arch/x86/kernel/cpu/acrn.c +++ b/arch/x86/kernel/cpu/acrn.c @@ -11,14 +11,15 @@  #include <linux/interrupt.h>  #include <asm/apic.h> +#include <asm/cpufeatures.h>  #include <asm/desc.h>  #include <asm/hypervisor.h>  #include <asm/idtentry.h>  #include <asm/irq_regs.h> -static uint32_t __init acrn_detect(void) +static u32 __init acrn_detect(void)  { -	return hypervisor_cpuid_base("ACRNACRNACRN\0\0", 0); +	return hypervisor_cpuid_base("ACRNACRNACRN", 0);  }  static void __init acrn_init_platform(void) @@ -29,12 +30,7 @@ static void __init acrn_init_platform(void)  static bool acrn_x2apic_available(void)  { -	/* -	 * x2apic is not supported for now. Future enablement will have to check -	 * X86_FEATURE_X2APIC to determine whether x2apic is supported in the -	 * guest. -	 */ -	return false; +	return boot_cpu_has(X86_FEATURE_X2APIC);  }  static void (*acrn_intr_handler)(void);  |