diff options
| -rw-r--r-- | include/linux/interrupt.h | 2 | ||||
| -rw-r--r-- | kernel/irq/manage.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index cf682a73a6f9..da3e0dbe61d4 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
| @@ -45,6 +45,7 @@ | |||
| 45 | #define IRQF_SHARED 0x00000080 | 45 | #define IRQF_SHARED 0x00000080 |
| 46 | #define IRQF_PROBE_SHARED 0x00000100 | 46 | #define IRQF_PROBE_SHARED 0x00000100 |
| 47 | #define IRQF_TIMER 0x00000200 | 47 | #define IRQF_TIMER 0x00000200 |
| 48 | #define IRQF_PERCPU 0x00000400 | ||
| 48 | 49 | ||
| 49 | /* | 50 | /* |
| 50 | * Migration helpers. Scheduled for removal in 1/2007 | 51 | * Migration helpers. Scheduled for removal in 1/2007 |
| @@ -54,6 +55,7 @@ | |||
| 54 | #define SA_SAMPLE_RANDOM IRQF_SAMPLE_RANDOM | 55 | #define SA_SAMPLE_RANDOM IRQF_SAMPLE_RANDOM |
| 55 | #define SA_SHIRQ IRQF_SHARED | 56 | #define SA_SHIRQ IRQF_SHARED |
| 56 | #define SA_PROBEIRQ IRQF_PROBE_SHARED | 57 | #define SA_PROBEIRQ IRQF_PROBE_SHARED |
| 58 | #define SA_PERCPU IRQF_PERCPU | ||
| 57 | 59 | ||
| 58 | #define SA_TRIGGER_LOW IRQF_TRIGGER_LOW | 60 | #define SA_TRIGGER_LOW IRQF_TRIGGER_LOW |
| 59 | #define SA_TRIGGER_HIGH IRQF_TRIGGER_HIGH | 61 | #define SA_TRIGGER_HIGH IRQF_TRIGGER_HIGH |
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index fede5fa351df..c911c6ec4dd6 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
| @@ -234,7 +234,7 @@ int setup_irq(unsigned int irq, struct irqaction *new) | |||
| 234 | ((old->flags ^ new->flags) & IRQF_TRIGGER_MASK)) | 234 | ((old->flags ^ new->flags) & IRQF_TRIGGER_MASK)) |
| 235 | goto mismatch; | 235 | goto mismatch; |
| 236 | 236 | ||
| 237 | #if defined(CONFIG_IRQ_PER_CPU) && defined(IRQF_PERCPU) | 237 | #if defined(CONFIG_IRQ_PER_CPU) |
| 238 | /* All handlers must agree on per-cpuness */ | 238 | /* All handlers must agree on per-cpuness */ |
| 239 | if ((old->flags & IRQF_PERCPU) != | 239 | if ((old->flags & IRQF_PERCPU) != |
| 240 | (new->flags & IRQF_PERCPU)) | 240 | (new->flags & IRQF_PERCPU)) |
| @@ -250,7 +250,7 @@ int setup_irq(unsigned int irq, struct irqaction *new) | |||
| 250 | } | 250 | } |
| 251 | 251 | ||
| 252 | *p = new; | 252 | *p = new; |
| 253 | #if defined(CONFIG_IRQ_PER_CPU) && defined(IRQF_PERCPU) | 253 | #if defined(CONFIG_IRQ_PER_CPU) |
| 254 | if (new->flags & IRQF_PERCPU) | 254 | if (new->flags & IRQF_PERCPU) |
| 255 | desc->status |= IRQ_PER_CPU; | 255 | desc->status |= IRQ_PER_CPU; |
| 256 | #endif | 256 | #endif |
