diff options
Diffstat (limited to 'arch/x86/kernel/cpu/hypervisor.c')
| -rw-r--r-- | arch/x86/kernel/cpu/hypervisor.c | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/hypervisor.c b/arch/x86/kernel/cpu/hypervisor.c index a8f8fa9769d..1e7e84a02eb 100644 --- a/arch/x86/kernel/cpu/hypervisor.c +++ b/arch/x86/kernel/cpu/hypervisor.c @@ -79,3 +79,10 @@ void __init init_hypervisor_platform(void)  	if (x86_hyper->init_platform)  		x86_hyper->init_platform();  } + +bool __init hypervisor_x2apic_available(void) +{ +	return x86_hyper                   && +	       x86_hyper->x2apic_available && +	       x86_hyper->x2apic_available(); +}  |