summaryrefslogtreecommitdiffstats
path: root/kernel/irq/autoprobe.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-06-29 11:24:54 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-29 19:26:24 +0200
commit7a55713ab456d267815fd5ca3c3d0fd14301f306 (patch)
treea318479efa070eb912fa3dd43738d2b1ae252837 /kernel/irq/autoprobe.c
parent[PATCH] genirq: add irq-chip support (diff)
downloadlinux-7a55713ab456d267815fd5ca3c3d0fd14301f306.tar.xz
linux-7a55713ab456d267815fd5ca3c3d0fd14301f306.zip
[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/autoprobe.c')
-rw-r--r--kernel/irq/autoprobe.c8
1 files changed, 8 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 @@
#include <linux/interrupt.h>
#include <linux/delay.h>
+#include "internals.h"
+
/*
* Autodetection depends on the fact that any interrupt that
* comes in on to an unassigned handler will get stuck with
@@ -42,6 +44,12 @@ unsigned long probe_irq_on(void)
spin_lock_irq(&desc->lock);
if (!desc->action && !(desc->status & IRQ_NOPROBE)) {
/*
+ * An old-style architecture might still have
+ * the handle_bad_irq handler there:
+ */
+ compat_irq_chip_set_default_handler(desc);
+
+ /*
* Some chips need to know about probing in
* progress:
*/