x86/apic: Use x2apic physical mode based on FADT setting

Provide systems that do not support x2apic cluster mode
a mechanism to select x2apic physical mode using the
FADT FORCE_APIC_PHYSICAL_DESTINATION_MODE bit.

Changes from v1: (based on Suresh's comments)
- removed #ifdef CONFIG_ACPI
- removed #include <linux/acpi.h>

Signed-off-by: Greg Pearson <greg.pearson@hp.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/1335313436-32020-1-git-send-email-greg.pearson@hp.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by Greg Pearson and committed by Ingo Molnar ea0dcf90 d0d3bc65

+6
+6
arch/x86/kernel/apic/x2apic_phys.c
··· 24 24 { 25 25 if (x2apic_phys) 26 26 return x2apic_enabled(); 27 + else if ((acpi_gbl_FADT.header.revision >= FADT2_REVISION_ID) && 28 + (acpi_gbl_FADT.flags & ACPI_FADT_APIC_PHYSICAL) && 29 + x2apic_enabled()) { 30 + printk(KERN_DEBUG "System requires x2apic physical mode\n"); 31 + return 1; 32 + } 27 33 else 28 34 return 0; 29 35 }