x86: select x2apic ops in early apic probe only if x2apic mode is enabled
[pandora-kernel.git] / arch / x86 / kernel / apic / x2apic_cluster.c
index 4e39d9a..354b9c4 100644 (file)
@@ -14,10 +14,7 @@ DEFINE_PER_CPU(u32, x86_cpu_to_logical_apicid);
 
 static int x2apic_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
 {
-       if (cpu_has_x2apic)
-               return 1;
-
-       return 0;
+       return x2apic_enabled();
 }
 
 /* Start with all IRQs pointing to boot CPU.  IRQ balancing will shift them. */