public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add SA_PERCPU_IRQ flag support
@ 2006-03-21 21:38 Dimitri Sivanich
  2006-03-21 23:37 ` Andrew Morton
  0 siblings, 1 reply; 12+ messages in thread
From: Dimitri Sivanich @ 2006-03-21 21:38 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, hch, clameter, jes

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 <sivanich@sgi.com>

Index: linux-2.6.15/kernel/irq/manage.c
===================================================================
--- linux-2.6.15.orig/kernel/irq/manage.c	2006-03-20 13:11:01.766522017 -0600
+++ linux-2.6.15/kernel/irq/manage.c	2006-03-21 15:26:12.305876769 -0600
@@ -206,6 +206,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 */


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH] Add SA_PERCPU_IRQ flag support
@ 2006-03-17  0:31 Dimitri Sivanich
  2006-03-17  2:09 ` Christoph Hellwig
  2006-03-17 23:26 ` Andrew Morton
  0 siblings, 2 replies; 12+ messages in thread
From: Dimitri Sivanich @ 2006-03-17  0:31 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: linux-ia64, linux-kernel, 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 <sivanich@sgi.com>

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-03-22  2:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-21 21:38 [PATCH] Add SA_PERCPU_IRQ flag support Dimitri Sivanich
2006-03-21 23:37 ` Andrew Morton
2006-03-21 23:45   ` Christoph Lameter
2006-03-22  2:00     ` Benjamin Herrenschmidt
2006-03-22  0:52   ` Dimitri Sivanich
  -- strict thread matches above, loose matches on Subject: below --
2006-03-17  0:31 Dimitri Sivanich
2006-03-17  2:09 ` Christoph Hellwig
2006-03-17 23:26 ` Andrew Morton
2006-03-18  9:49   ` Andrew Morton
2006-03-20 14:17     ` Dimitri Sivanich
2006-03-20 14:22       ` Matthew Wilcox
2006-03-20 14:25         ` Dimitri Sivanich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox