From: Ingo Molnar Handle bad IRQ vectors via the irqchip mechanism. Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner Signed-off-by: Andrew Morton --- kernel/irq/autoprobe.c | 8 ++++++++ kernel/irq/handle.c | 1 + 2 files changed, 9 insertions(+) diff -puN kernel/irq/autoprobe.c~genirq-add-handle_bad_irq kernel/irq/autoprobe.c --- devel/kernel/irq/autoprobe.c~genirq-add-handle_bad_irq 2006-06-09 15:18:34.000000000 -0700 +++ devel-akpm/kernel/irq/autoprobe.c 2006-06-09 15:18:34.000000000 -0700 @@ -11,6 +11,8 @@ #include #include +#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: */ diff -puN kernel/irq/handle.c~genirq-add-handle_bad_irq kernel/irq/handle.c --- devel/kernel/irq/handle.c~genirq-add-handle_bad_irq 2006-06-09 15:18:34.000000000 -0700 +++ devel-akpm/kernel/irq/handle.c 2006-06-09 15:18:34.000000000 -0700 @@ -46,6 +46,7 @@ struct irq_desc irq_desc[NR_IRQS] __cach [0 ... NR_IRQS-1] = { .status = IRQ_DISABLED, .chip = &no_irq_type, + .handle_irq = handle_bad_irq, .depth = 1, .lock = SPIN_LOCK_UNLOCKED, #ifdef CONFIG_SMP _