WHY?? arch/i386/kernel/i8259.c

From: Andre Hedrick (andre@linux-ide.org)
Date: Fri Jun 02 2000 - 00:35:11 EST


2.3.48........
static void end_8259A_irq (unsigned int irq)
{
        if (!(irq_desc[irq].status & IRQ_DISABLED))
                enable_8259A_irq(irq);
}

Now........
static void end_8259A_irq (unsigned int irq)
{
        if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
                enable_8259A_irq(irq);
}

Why are we enabling a disabled IRQ if it is in_progress?
It does not make sense to do this if we are blocking it in a LOCK or
something else.........

Martin, help me out to understand this please.

Andre Hedrick
The Linux ATA/IDE guy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:14 EST