[parisc-linux] Some progress with WAX_EISA (Who knows about int errupts?)

Matthew Wilcox matthew@wil.cx
Tue, 20 Feb 2001 10:51:12 -0700


On Tue, Feb 20, 2001 at 09:44:55AM -0800, Grant Grundler wrote:
> Matthew Wilcox wrote:
> > i386 sets IRQ_INPROGRESS before it calls handle_IRQ_event and then
> > clears it after the interrupt handler returns.  I'm not sure whether
> > local interrupts are disabled at this point or not.  It might well be
> > an SMP issue.
> > 
> > I suspect we want to add IRQ_INPROGRESS to our interrupt handlers.
> 
> I think irqs_running() serves that purpose. no?

No.  irqs_running() tells us whether any irqs are in progress.  You have
to grab the global_irq_lock before you call it.  IRQ_INPROGRESS tells us
whether we're in the middle of servicing this particular interrupt.

-- 
Revolutions do not require corporate support.