Re: [RFC][PATCH] Cascaded interrupts: a simple solution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux