diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-06-29 05:24:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-29 13:26:24 -0400 |
commit | 6a6de9ef5850d063c3d3fb50784bfe3a6d0712c6 (patch) | |
tree | d09f1887fd8890c820559b931140afe4c68f2d7f /kernel/irq/manage.c | |
parent | a34db9b28a1c63317e1d6f1080a12d711579e7d0 (diff) |
[PATCH] genirq: core
Core genirq support: add the irq-chip and irq-flow abstractions.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/irq/manage.c')
-rw-r--r-- | kernel/irq/manage.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 1a2e7663096a..b61784ee78b2 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -153,6 +153,17 @@ int can_request_irq(unsigned int irq, unsigned long irqflags) | |||
153 | return !action; | 153 | return !action; |
154 | } | 154 | } |
155 | 155 | ||
156 | void compat_irq_chip_set_default_handler(struct irq_desc *desc) | ||
157 | { | ||
158 | /* | ||
159 | * If the architecture still has not overriden | ||
160 | * the flow handler then zap the default. This | ||
161 | * should catch incorrect flow-type setting. | ||
162 | */ | ||
163 | if (desc->handle_irq == &handle_bad_irq) | ||
164 | desc->handle_irq = NULL; | ||
165 | } | ||
166 | |||
156 | /* | 167 | /* |
157 | * Internal function to register an irqaction - typically used to | 168 | * Internal function to register an irqaction - typically used to |
158 | * allocate special interrupts that are part of the architecture. | 169 | * allocate special interrupts that are part of the architecture. |
@@ -217,6 +228,9 @@ int setup_irq(unsigned int irq, struct irqaction *new) | |||
217 | desc->status |= IRQ_PER_CPU; | 228 | desc->status |= IRQ_PER_CPU; |
218 | #endif | 229 | #endif |
219 | if (!shared) { | 230 | if (!shared) { |
231 | irq_chip_set_defaults(desc->chip); | ||
232 | compat_irq_chip_set_default_handler(desc); | ||
233 | |||
220 | desc->status &= ~(IRQ_AUTODETECT | IRQ_WAITING | | 234 | desc->status &= ~(IRQ_AUTODETECT | IRQ_WAITING | |
221 | IRQ_INPROGRESS); | 235 | IRQ_INPROGRESS); |
222 | 236 | ||