Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22851
b: refs/heads/master
c: bec1b81
h: refs/heads/master
i:
  22849: 2b9fb5b
  22847: 057faf7
v: v3
  • Loading branch information
Russell King authored and Russell King committed Mar 22, 2006
1 parent a68b209 commit 497b701
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 58e9ff56382bdce340d50b6ff22c422dc617106c
refs/heads/master: bec1b8193651ea4394cc4d6e18152cb83e735f93
11 changes: 8 additions & 3 deletions trunk/arch/arm/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,19 @@ report_bad_irq(unsigned int irq, struct pt_regs *regs, struct irqdesc *desc, int
static int count = 100;
struct irqaction *action;

if (!count || noirqdebug)
if (noirqdebug)
return;

count--;

if (ret != IRQ_HANDLED && ret != IRQ_NONE) {
if (!count)
return;
count--;
printk("irq%u: bogus retval mask %x\n", irq, ret);
} else {
desc->irqs_unhandled++;
if (desc->irqs_unhandled <= 99900)
return;
desc->irqs_unhandled = 0;
printk("irq%u: nobody cared\n", irq);
}
show_regs(regs);
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-arm/mach/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ struct irqdesc {
unsigned int noautoenable : 1; /* don't automatically enable IRQ */
unsigned int unused :25;

unsigned int irqs_unhandled;
struct proc_dir_entry *procdir;

#ifdef CONFIG_SMP
Expand Down

0 comments on commit 497b701

Please sign in to comment.