Re: [RFC][PATCH] Cascaded interrupts: a simple solution
From: Benjamin Herrenschmidt
Date: Thu May 11 2006 - 02:13:43 EST
> Index: linux-work/kernel/irq/manage.c
> ===================================================================
> --- linux-work.orig/kernel/irq/manage.c 2006-05-11 11:45:09.000000000 +1000
> +++ linux-work/kernel/irq/manage.c 2006-05-11 12:00:52.000000000 +1000
> @@ -371,6 +371,13 @@ int request_irq(unsigned int irq,
> if (!handler)
> return -EINVAL;
>
> + /*
> + * SA_CASCADE implies SA_INTERRUPT (that is, the demux itself happens
> + * with interrupts disabled, the final handler is still called with
> + */
> + if (irqflags & SA_CASCADEIRQ)
> + irqflags |= SA_INTERRUPT;
> +
Oh and that bit isn't actually necessary ...
Ben.
-
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/