RE: Why no interrupt priorities?
From: Grover, Andrew
Date: Fri Feb 27 2004 - 12:49:16 EST
> From: Helge Hafting [mailto:helgehaf@xxxxxxxxxxxxx]
> Grover, Andrew wrote:
> > Is the assumption that hardirq handlers are superfast also
> the reason
> > why Linux calls all handlers on a shared interrupt, even if
> the first
> > handler reports it was for its device?
> >
> No, it is the other way around. hardirq handlers have to be superfast
> because linux usually _have to_ call all the handlers of a shared irq.
>
> The fact that one device did indeed have an interrupt for us
> doesn't mean
> that the others didn't. So all of them have to be checked to be safe.
If a device later in the handler chain is also interrupting, then the
interrupt will immediately trigger again. The irq line will remain
asserted until nobody is asserting it.
If the LAST guy in the chain is the one with the interrupt, then you
basically get today's ISR "call each handler" behavior, but it should be
possible to in some cases to get less time spent in do_IRQ.
It is a trivial change to implement this behavior, but benchmarking
would have to be done to verify it really would be a worthwhile
optimization.
Regards -- Andy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/