|
@@ -271,7 +271,7 @@ static __attribute_const__ struct io_apic __iomem *io_apic_base(int idx)
|
|
|
+ (mpc_ioapic_addr(idx) & ~PAGE_MASK);
|
|
|
}
|
|
|
|
|
|
-void io_apic_eoi(unsigned int apic, unsigned int vector)
|
|
|
+static inline 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);
|
|
@@ -527,7 +527,7 @@ 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.
|
|
|
*/
|
|
|
-void native_eoi_ioapic_pin(int apic, int pin, int vector)
|
|
|
+static void __eoi_ioapic_pin(int apic, int pin, int vector)
|
|
|
{
|
|
|
if (mpc_ioapic_ver(apic) >= 0x20) {
|
|
|
io_apic_eoi(apic, vector);
|
|
@@ -558,19 +558,7 @@ void eoi_ioapic_pin(int vector, struct irq_cfg *cfg)
|
|
|
|
|
|
raw_spin_lock_irqsave(&ioapic_lock, flags);
|
|
|
for_each_irq_pin(entry, cfg->irq_2_pin)
|
|
|
- native_eoi_ioapic_pin(entry->apic, entry->pin, vector);
|
|
|
- raw_spin_unlock_irqrestore(&ioapic_lock, flags);
|
|
|
-}
|
|
|
-
|
|
|
-void eoi_ioapic_irq(unsigned int irq, struct irq_cfg *cfg)
|
|
|
-{
|
|
|
- struct irq_pin_list *entry;
|
|
|
- unsigned long flags;
|
|
|
-
|
|
|
- raw_spin_lock_irqsave(&ioapic_lock, flags);
|
|
|
- for_each_irq_pin(entry, cfg->irq_2_pin)
|
|
|
- x86_io_apic_ops.eoi_ioapic_pin(entry->apic, entry->pin,
|
|
|
- cfg->vector);
|
|
|
+ __eoi_ioapic_pin(entry->apic, entry->pin, vector);
|
|
|
raw_spin_unlock_irqrestore(&ioapic_lock, flags);
|
|
|
}
|
|
|
|
|
@@ -606,7 +594,7 @@ static void clear_IO_APIC_pin(unsigned int apic, unsigned int pin)
|
|
|
ioapic_write_entry(apic, pin, entry);
|
|
|
}
|
|
|
raw_spin_lock_irqsave(&ioapic_lock, flags);
|
|
|
- native_eoi_ioapic_pin(apic, pin, entry.vector);
|
|
|
+ __eoi_ioapic_pin(apic, pin, entry.vector);
|
|
|
raw_spin_unlock_irqrestore(&ioapic_lock, flags);
|
|
|
}
|
|
|
|