|
@@ -310,7 +310,7 @@ static __attribute_const__ struct io_apic __iomem *io_apic_base(int idx)
|
|
|
+ (mpc_ioapic_addr(idx) & ~PAGE_MASK);
|
|
|
}
|
|
|
|
|
|
-static inline void io_apic_eoi(unsigned int apic, unsigned int vector)
|
|
|
+void io_apic_eoi(unsigned int apic, unsigned int vector)
|
|
|
{
|
|
|
struct io_apic __iomem *io_apic = io_apic_base(apic);
|
|
|
writel(vector, &io_apic->eoi);
|
|
@@ -557,19 +557,10 @@ static void unmask_ioapic_irq(struct irq_data *data)
|
|
|
* Otherwise, we simulate the EOI message manually by changing the trigger
|
|
|
* mode to edge and then back to level, with RTE being masked during this.
|
|
|
*/
|
|
|
-static void __eoi_ioapic_pin(int apic, int pin, int vector, struct irq_cfg *cfg)
|
|
|
+void native_eoi_ioapic_pin(int apic, int pin, int vector)
|
|
|
{
|
|
|
if (mpc_ioapic_ver(apic) >= 0x20) {
|
|
|
- /*
|
|
|
- * Intr-remapping uses pin number as the virtual vector
|
|
|
- * in the RTE. Actual vector is programmed in
|
|
|
- * intr-remapping table entry. Hence for the io-apic
|
|
|
- * EOI we use the pin number.
|
|
|
- */
|
|
|
- if (cfg && irq_remapped(cfg))
|
|
|
- io_apic_eoi(apic, pin);
|
|
|
- else
|
|
|
- io_apic_eoi(apic, vector);
|
|
|
+ io_apic_eoi(apic, vector);
|
|
|
} else {
|
|
|
struct IO_APIC_route_entry entry, entry1;
|
|
|
|
|
@@ -597,7 +588,8 @@ void eoi_ioapic_irq(unsigned int irq, struct irq_cfg *cfg)
|
|
|
|
|
|
raw_spin_lock_irqsave(&ioapic_lock, flags);
|
|
|
for_each_irq_pin(entry, cfg->irq_2_pin)
|
|
|
- __eoi_ioapic_pin(entry->apic, entry->pin, cfg->vector, cfg);
|
|
|
+ x86_io_apic_ops.eoi_ioapic_pin(entry->apic, entry->pin,
|
|
|
+ cfg->vector);
|
|
|
raw_spin_unlock_irqrestore(&ioapic_lock, flags);
|
|
|
}
|
|
|
|
|
@@ -634,7 +626,7 @@ static void clear_IO_APIC_pin(unsigned int apic, unsigned int pin)
|
|
|
}
|
|
|
|
|
|
raw_spin_lock_irqsave(&ioapic_lock, flags);
|
|
|
- __eoi_ioapic_pin(apic, pin, entry.vector, NULL);
|
|
|
+ x86_io_apic_ops.eoi_ioapic_pin(apic, pin, entry.vector);
|
|
|
raw_spin_unlock_irqrestore(&ioapic_lock, flags);
|
|
|
}
|
|
|
|