|
@@ -2552,20 +2552,6 @@ eoi_ioapic_irq(struct irq_desc *desc)
|
|
spin_unlock_irqrestore(&ioapic_lock, flags);
|
|
spin_unlock_irqrestore(&ioapic_lock, flags);
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_X86_X2APIC
|
|
|
|
-static void ack_x2apic_level(unsigned int irq)
|
|
|
|
-{
|
|
|
|
- struct irq_desc *desc = irq_to_desc(irq);
|
|
|
|
- ack_x2APIC_irq();
|
|
|
|
- eoi_ioapic_irq(desc);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static void ack_x2apic_edge(unsigned int irq)
|
|
|
|
-{
|
|
|
|
- ack_x2APIC_irq();
|
|
|
|
-}
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
static void ack_apic_edge(unsigned int irq)
|
|
static void ack_apic_edge(unsigned int irq)
|
|
{
|
|
{
|
|
struct irq_desc *desc = irq_to_desc(irq);
|
|
struct irq_desc *desc = irq_to_desc(irq);
|
|
@@ -2629,9 +2615,6 @@ static void ack_apic_level(unsigned int irq)
|
|
*/
|
|
*/
|
|
ack_APIC_irq();
|
|
ack_APIC_irq();
|
|
|
|
|
|
- if (irq_remapped(irq))
|
|
|
|
- eoi_ioapic_irq(desc);
|
|
|
|
-
|
|
|
|
/* Now we can move and renable the irq */
|
|
/* Now we can move and renable the irq */
|
|
if (unlikely(do_unmask_irq)) {
|
|
if (unlikely(do_unmask_irq)) {
|
|
/* Only migrate the irq if the ack has been received.
|
|
/* Only migrate the irq if the ack has been received.
|
|
@@ -2680,20 +2663,15 @@ static void ack_apic_level(unsigned int irq)
|
|
#ifdef CONFIG_INTR_REMAP
|
|
#ifdef CONFIG_INTR_REMAP
|
|
static void ir_ack_apic_edge(unsigned int irq)
|
|
static void ir_ack_apic_edge(unsigned int irq)
|
|
{
|
|
{
|
|
-#ifdef CONFIG_X86_X2APIC
|
|
|
|
- if (x2apic_enabled())
|
|
|
|
- return ack_x2apic_edge(irq);
|
|
|
|
-#endif
|
|
|
|
- return ack_apic_edge(irq);
|
|
|
|
|
|
+ ack_APIC_irq();
|
|
}
|
|
}
|
|
|
|
|
|
static void ir_ack_apic_level(unsigned int irq)
|
|
static void ir_ack_apic_level(unsigned int irq)
|
|
{
|
|
{
|
|
-#ifdef CONFIG_X86_X2APIC
|
|
|
|
- if (x2apic_enabled())
|
|
|
|
- return ack_x2apic_level(irq);
|
|
|
|
-#endif
|
|
|
|
- return ack_apic_level(irq);
|
|
|
|
|
|
+ struct irq_desc *desc = irq_to_desc(irq);
|
|
|
|
+
|
|
|
|
+ ack_APIC_irq();
|
|
|
|
+ eoi_ioapic_irq(desc);
|
|
}
|
|
}
|
|
#endif /* CONFIG_INTR_REMAP */
|
|
#endif /* CONFIG_INTR_REMAP */
|
|
|
|
|