From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dimitri Sivanich Date: Fri, 17 Mar 2006 00:31:14 +0000 Subject: [PATCH] Add SA_PERCPU_IRQ flag support Message-Id: <20060317003114.GA1735@sgi.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Linus Torvalds Cc: linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Christoph Lameter , Jes Sorensen The generic request_irq/setup_irq code should support the SA_PERCPU_IRQ flag. Not sure why it was left out, but this patch adds that support. Signed-off-by: Dimitri Sivanich Index: linux/kernel/irq/manage.c =================================--- linux.orig/kernel/irq/manage.c 2006-03-16 14:05:27.957927445 -0600 +++ linux/kernel/irq/manage.c 2006-03-16 14:06:02.283661867 -0600 @@ -201,6 +201,9 @@ 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 (new->flags & SA_PERCPU_IRQ) { + desc->status |= IRQ_PER_CPU; + } p = &desc->action; if ((old = *p) != NULL) { /* Can't share interrupts unless both agree to */