x86/apic: Do not init irq remapping if ioapic is disabled
[cascardo/linux.git] / arch / x86 / kernel / apic / apic.c
index cea4fc1..50c95af 100644 (file)
@@ -1623,6 +1623,9 @@ void __init enable_IR_x2apic(void)
        unsigned long flags;
        int ret, ir_stat;
 
+       if (skip_ioapic_setup)
+               return;
+
        ir_stat = irq_remapping_prepare();
        if (ir_stat < 0 && !x2apic_supported())
                return;