Re: better leve triggered IRQ management needed

From: Linus Torvalds
Date: Mon Apr 24 2006 - 17:09:24 EST




On Mon, 24 Apr 2006, linux-os (Dick Johnson) wrote:
> On Mon, 24 Apr 2006, Linus Torvalds wrote:
> >
> > SA_SHIRQ does NOT mean that the irq is shared.
> >
> > It means that it's not exclusive, and that the driver is _ok_ with it
> > being shared if that makes sense.
>
> Yeah. You have been talking to too many lawyers! You are getting a
> forked tongue!

No, it's just legacy from some _really_ really old code. As in 1991.

The very original Linux irq system didn't share interrupts at all (hey,
PCI was newfangled, and ISA interrupts ruled), so when interrupt sharing
was added, the default was to not do it.

These days, that doesn't make any sense, and if somebody did the flags
today, you'd do it the other way around (default to shared, and if
somebody wants a really exclusive interrupt, they should say so with
SA_EXCLUSIVE or something).

But Linux grew from humble and stupid roots.

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