]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86: apic: Remove not needed #ifdef
authorYinghai Lu <yinghai@kernel.org>
Sat, 21 Nov 2009 08:23:37 +0000 (00:23 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 23 Nov 2009 08:54:15 +0000 (09:54 +0100)
Suresh made dmar_table_init() already have that protection.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4B07A739.3030104@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/apic.c

index 4c689f45b238f4707a56b673d7b9fad4e7a71d1d..ad8c75b9e4535dea2d3a05e8ba1858d37e148ffd 100644 (file)
@@ -1377,14 +1377,11 @@ void __init enable_IR_x2apic(void)
        unsigned long flags;
        struct IO_APIC_route_entry **ioapic_entries = NULL;
        int ret, x2apic_enabled = 0;
-       int dmar_table_init_ret = 0;
+       int dmar_table_init_ret;
 
-#ifdef CONFIG_INTR_REMAP
        dmar_table_init_ret = dmar_table_init();
-       if (dmar_table_init_ret)
-               pr_debug("dmar_table_init() failed with %d:\n",
-                               dmar_table_init_ret);
-#endif
+       if (dmar_table_init_ret && !x2apic_supported())
+               return;
 
        ioapic_entries = alloc_ioapic_entries();
        if (!ioapic_entries) {