Re: [patch 2/3] genirq: warn about IRQF_SHARED|IRQF_DISABLED at theright place

From: Andrew Morton
Date: Mon Mar 15 2010 - 02:27:22 EST


On Mon, 15 Mar 2010 02:52:49 +0000 Jamie Lokier <jamie@xxxxxxxxxxxxx> wrote:

> Andrew Morton wrote:
> > We can tweak and tune until we're blue in the face, but the system's
> > IRQ latency will always be worse if handlers always run with interrupts
> > disabled.
>
> Are you sure?
>
> If good, fast irq handler A runs with interrupts enabled,
> and good, fast irq handler B runs (interrupting A),
> A's latency goes _up_ not down.
>
> If B happens first, then you get B's latency going up, and A's latency going down.

If the hardware doesn't prioritise these interrupts then the programmer
can do so crudely, by running the critical one with interrupts disabled.

--
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/