x86/ioapic: Check x2apic really
authorThomas Gleixner <tglx@linutronix.de>
Thu, 15 Jan 2015 21:22:14 +0000 (21:22 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 22 Jan 2015 14:10:54 +0000 (15:10 +0100)
commit2ca5b40479246087695d9e6343075b47ee6887ea
tree1d6d6cc40b1828bc5d6b6bb48ed2753c289f6f42
parentbfb050702990d6a2033d072cb2af583aee5c6fc5
x86/ioapic: Check x2apic really

The x2apic_preenabled flag is just a horrible hack and if X2APIC
support is disabled it does not reflect the actual hardware
state. Check the hardware instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Link: http://lkml.kernel.org/r/20150115211702.541280622@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/apic.h
arch/x86/kernel/apic/apic.c
arch/x86/kernel/apic/io_apic.c