diff options
-rw-r--r-- | arch/x86_64/kernel/irq.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/x86_64/kernel/irq.c b/arch/x86_64/kernel/irq.c index b8a407fcd5d5..dff68eb2b787 100644 --- a/arch/x86_64/kernel/irq.c +++ b/arch/x86_64/kernel/irq.c | |||
@@ -114,16 +114,16 @@ asmlinkage unsigned int do_IRQ(struct pt_regs *regs) | |||
114 | irq_enter(); | 114 | irq_enter(); |
115 | irq = __get_cpu_var(vector_irq)[vector]; | 115 | irq = __get_cpu_var(vector_irq)[vector]; |
116 | 116 | ||
117 | if (unlikely(irq >= NR_IRQS)) { | ||
118 | printk(KERN_EMERG "%s: cannot handle IRQ %d\n", | ||
119 | __FUNCTION__, irq); | ||
120 | BUG(); | ||
121 | } | ||
122 | |||
123 | #ifdef CONFIG_DEBUG_STACKOVERFLOW | 117 | #ifdef CONFIG_DEBUG_STACKOVERFLOW |
124 | stack_overflow_check(regs); | 118 | stack_overflow_check(regs); |
125 | #endif | 119 | #endif |
126 | generic_handle_irq(irq); | 120 | |
121 | if (likely(irq < NR_IRQS)) | ||
122 | generic_handle_irq(irq); | ||
123 | else | ||
124 | printk(KERN_EMERG "%s: %d.%d No irq handler for vector\n", | ||
125 | __func__, smp_processor_id(), vector); | ||
126 | |||
127 | irq_exit(); | 127 | irq_exit(); |
128 | 128 | ||
129 | set_irq_regs(old_regs); | 129 | set_irq_regs(old_regs); |