/* This is not complete - we should be able to fake an edge even if it isn't on the 8259A...  */
static unsigned int startup_ioapic_irq(unsigned int irq)
/* This is not complete - we should be able to fake an edge even if it isn't on the 8259A...  */
static unsigned int startup_ioapic_irq(unsigned int irq)
{
	int was_pending = 0;
	unsigned long flags;
	struct irq_cfg *cfg;
	spin_lock_irqsave(&ioapic_lock, flags);
	if (irq < nr_legacy_irqs) {
		disable_8259A_irq(irq);
		if (i8259A_irq_pending(irq))
			was_pending = 1;
	}
	cfg = irq_cfg(irq);
	__unmask_IO_APIC_irq(cfg);
	spin_unlock_irqrestore(&ioapic_lock, flags);
	return was_pending;
}