diff options
-rw-r--r-- | arch/x86/kernel/apic/apic.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 4c689f45b238..ad8c75b9e453 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
@@ -1377,14 +1377,11 @@ void __init enable_IR_x2apic(void) | |||
1377 | unsigned long flags; | 1377 | unsigned long flags; |
1378 | struct IO_APIC_route_entry **ioapic_entries = NULL; | 1378 | struct IO_APIC_route_entry **ioapic_entries = NULL; |
1379 | int ret, x2apic_enabled = 0; | 1379 | int ret, x2apic_enabled = 0; |
1380 | int dmar_table_init_ret = 0; | 1380 | int dmar_table_init_ret; |
1381 | 1381 | ||
1382 | #ifdef CONFIG_INTR_REMAP | ||
1383 | dmar_table_init_ret = dmar_table_init(); | 1382 | dmar_table_init_ret = dmar_table_init(); |
1384 | if (dmar_table_init_ret) | 1383 | if (dmar_table_init_ret && !x2apic_supported()) |
1385 | pr_debug("dmar_table_init() failed with %d:\n", | 1384 | return; |
1386 | dmar_table_init_ret); | ||
1387 | #endif | ||
1388 | 1385 | ||
1389 | ioapic_entries = alloc_ioapic_entries(); | 1386 | ioapic_entries = alloc_ioapic_entries(); |
1390 | if (!ioapic_entries) { | 1387 | if (!ioapic_entries) { |