diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-10 16:48:29 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-10 16:48:29 (GMT) |
commit | 8c8ae4e8cd5a67467192f3361eeec463694f8ed8 (patch) | |
tree | c4216f3f8cb89dd6a12e727d886abc0f6ab74c83 /arch/x86/kernel | |
parent | a1e8fad5900fa94adb500c6e0dfd60a307f7a3c9 (diff) | |
parent | d9b8ca8474fd4fdd43ba6d97a4fee8b49b978067 (diff) | |
download | linux-8c8ae4e8cd5a67467192f3361eeec463694f8ed8.tar.xz |
Merge branch 'stable/generic' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen
* 'stable/generic' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
xen: HVM X2APIC support
apic: Move hypervisor detection of x2apic to hypervisor.h
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/apic/apic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 79e6baa..a51345b 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -49,8 +49,8 @@ #include <asm/mtrr.h> #include <asm/smp.h> #include <asm/mce.h> -#include <asm/kvm_para.h> #include <asm/tsc.h> +#include <asm/hypervisor.h> unsigned int num_processors; @@ -1476,7 +1476,8 @@ void __init enable_IR_x2apic(void) /* IR is required if there is APIC ID > 255 even when running * under KVM */ - if (max_physical_apicid > 255 || !kvm_para_available()) + if (max_physical_apicid > 255 || + !hypervisor_x2apic_available()) goto nox2apic; /* * without IR all CPUs can be addressed by IOAPIC/MSI |