From sivanich@sgi.com Tue Mar 21 13:38:05 2006 Date: Tue, 21 Mar 2006 15:38:03 -0600 From: Dimitri Sivanich To: Andrew Morton Cc: linux-kernel@vger.kernel.org, hch@infradead.org, clameter@sgi.com, jes@sgi.com Subject: [PATCH] Add SA_PERCPU_IRQ flag support The generic request_irq/setup_irq code should support the SA_PERCPU_IRQ flag. This patch was posted previously, but this one should build on all arch's. Signed-off-by: Dimitri Sivanich Index: linux-2.6.16-rc6-mm2/kernel/irq/manage.c =================================================================== --- linux-2.6.16-rc6-mm2.orig/kernel/irq/manage.c 2006-03-21 14:52:47.000000000 -0800 +++ linux-2.6.16-rc6-mm2/kernel/irq/manage.c 2006-03-21 15:41:26.000000000 -0800 @@ -201,6 +201,10 @@ int setup_irq(unsigned int irq, struct i * The following block of code has to be executed atomically */ spin_lock_irqsave(&desc->lock,flags); +#if defined(ARCH_HAS_IRQ_PER_CPU) && defined(SA_PERCPU_IRQ) + if (new->flags & SA_PERCPU_IRQ) + desc->status |= IRQ_PER_CPU; +#endif p = &desc->action; if ((old = *p) != NULL) { /* Can't share interrupts unless both agree to */