[PATCH] genirq:fixup missing SA_PERCPU replacement
authorThomas Gleixner <tglx@linutronix.de>
Mon, 3 Jul 2006 00:20:32 +0000 (02:20 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 3 Jul 2006 00:29:22 +0000 (17:29 -0700)
The irqflags consolidation converted SA_PERCPU_IRQ to IRQF_PERCPU but
did not define the new constant.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/interrupt.h
kernel/irq/manage.c

index cf682a73a6f97c67baf4bfa1346df00caa605f38..da3e0dbe61d4e68bbb63d1753449cc0d68769965 100644 (file)
@@ -45,6 +45,7 @@
 #define IRQF_SHARED            0x00000080
 #define IRQF_PROBE_SHARED      0x00000100
 #define IRQF_TIMER             0x00000200
+#define IRQF_PERCPU            0x00000400
 
 /*
  * Migration helpers. Scheduled for removal in 1/2007
@@ -54,6 +55,7 @@
 #define SA_SAMPLE_RANDOM       IRQF_SAMPLE_RANDOM
 #define SA_SHIRQ               IRQF_SHARED
 #define SA_PROBEIRQ            IRQF_PROBE_SHARED
+#define SA_PERCPU              IRQF_PERCPU
 
 #define SA_TRIGGER_LOW         IRQF_TRIGGER_LOW
 #define SA_TRIGGER_HIGH                IRQF_TRIGGER_HIGH
index fede5fa351dfce046dca0f28113c937854c2ba5d..c911c6ec4dd62dc6457e0e99adbbb241982b8712 100644 (file)
@@ -234,7 +234,7 @@ int setup_irq(unsigned int irq, struct irqaction *new)
                    ((old->flags ^ new->flags) & IRQF_TRIGGER_MASK))
                        goto mismatch;
 
-#if defined(CONFIG_IRQ_PER_CPU) && defined(IRQF_PERCPU)
+#if defined(CONFIG_IRQ_PER_CPU)
                /* All handlers must agree on per-cpuness */
                if ((old->flags & IRQF_PERCPU) !=
                    (new->flags & IRQF_PERCPU))
@@ -250,7 +250,7 @@ int setup_irq(unsigned int irq, struct irqaction *new)
        }
 
        *p = new;
-#if defined(CONFIG_IRQ_PER_CPU) && defined(IRQF_PERCPU)
+#if defined(CONFIG_IRQ_PER_CPU)
        if (new->flags & IRQF_PERCPU)
                desc->status |= IRQ_PER_CPU;
 #endif