diff options
Diffstat (limited to 'arch/arm/kernel/irq.c')
-rw-r--r-- | arch/arm/kernel/irq.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 1d50d2b98f55..2d5896b36181 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c | |||
@@ -305,14 +305,19 @@ report_bad_irq(unsigned int irq, struct pt_regs *regs, struct irqdesc *desc, int | |||
305 | static int count = 100; | 305 | static int count = 100; |
306 | struct irqaction *action; | 306 | struct irqaction *action; |
307 | 307 | ||
308 | if (!count || noirqdebug) | 308 | if (noirqdebug) |
309 | return; | 309 | return; |
310 | 310 | ||
311 | count--; | ||
312 | |||
313 | if (ret != IRQ_HANDLED && ret != IRQ_NONE) { | 311 | if (ret != IRQ_HANDLED && ret != IRQ_NONE) { |
312 | if (!count) | ||
313 | return; | ||
314 | count--; | ||
314 | printk("irq%u: bogus retval mask %x\n", irq, ret); | 315 | printk("irq%u: bogus retval mask %x\n", irq, ret); |
315 | } else { | 316 | } else { |
317 | desc->irqs_unhandled++; | ||
318 | if (desc->irqs_unhandled <= 99900) | ||
319 | return; | ||
320 | desc->irqs_unhandled = 0; | ||
316 | printk("irq%u: nobody cared\n", irq); | 321 | printk("irq%u: nobody cared\n", irq); |
317 | } | 322 | } |
318 | show_regs(regs); | 323 | show_regs(regs); |