diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-06-29 05:24:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-29 13:26:24 -0400 |
commit | 7a55713ab456d267815fd5ca3c3d0fd14301f306 (patch) | |
tree | a318479efa070eb912fa3dd43738d2b1ae252837 /kernel/irq | |
parent | dd87eb3a24c4527741122713e223d74b85d43c85 (diff) |
[PATCH] genirq: add handle_bad_irq()
Handle bad IRQ vectors via the irqchip mechanism.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/autoprobe.c | 8 | ||||
-rw-r--r-- | kernel/irq/handle.c | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/kernel/irq/autoprobe.c b/kernel/irq/autoprobe.c index cfdb63eb5c94..533068cfb607 100644 --- a/kernel/irq/autoprobe.c +++ b/kernel/irq/autoprobe.c | |||
@@ -11,6 +11,8 @@ | |||
11 | #include <linux/interrupt.h> | 11 | #include <linux/interrupt.h> |
12 | #include <linux/delay.h> | 12 | #include <linux/delay.h> |
13 | 13 | ||
14 | #include "internals.h" | ||
15 | |||
14 | /* | 16 | /* |
15 | * Autodetection depends on the fact that any interrupt that | 17 | * Autodetection depends on the fact that any interrupt that |
16 | * comes in on to an unassigned handler will get stuck with | 18 | * comes in on to an unassigned handler will get stuck with |
@@ -42,6 +44,12 @@ unsigned long probe_irq_on(void) | |||
42 | spin_lock_irq(&desc->lock); | 44 | spin_lock_irq(&desc->lock); |
43 | if (!desc->action && !(desc->status & IRQ_NOPROBE)) { | 45 | if (!desc->action && !(desc->status & IRQ_NOPROBE)) { |
44 | /* | 46 | /* |
47 | * An old-style architecture might still have | ||
48 | * the handle_bad_irq handler there: | ||
49 | */ | ||
50 | compat_irq_chip_set_default_handler(desc); | ||
51 | |||
52 | /* | ||
45 | * Some chips need to know about probing in | 53 | * Some chips need to know about probing in |
46 | * progress: | 54 | * progress: |
47 | */ | 55 | */ |
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index a04b516afa59..3a2dbcc9e215 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
@@ -46,6 +46,7 @@ struct irq_desc irq_desc[NR_IRQS] __cacheline_aligned = { | |||
46 | [0 ... NR_IRQS-1] = { | 46 | [0 ... NR_IRQS-1] = { |
47 | .status = IRQ_DISABLED, | 47 | .status = IRQ_DISABLED, |
48 | .chip = &no_irq_type, | 48 | .chip = &no_irq_type, |
49 | .handle_irq = handle_bad_irq, | ||
49 | .depth = 1, | 50 | .depth = 1, |
50 | .lock = SPIN_LOCK_UNLOCKED, | 51 | .lock = SPIN_LOCK_UNLOCKED, |
51 | #ifdef CONFIG_SMP | 52 | #ifdef CONFIG_SMP |