diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-07-13 20:29:24 +0200 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-07-25 03:20:41 +0200 |
commit | 8c9f08f9de38c9af3a946faf0cccd7fc46978443 (patch) | |
tree | 8aa45d55e13f2cb43d960823a41c3e1ecec8f57e /arch/m68k/kernel/irq.c | |
parent | m68knommu: Move forward declaration of do_IRQ() from machdep.h to irq.h (diff) | |
download | linux-8c9f08f9de38c9af3a946faf0cccd7fc46978443.tar.xz linux-8c9f08f9de38c9af3a946faf0cccd7fc46978443.zip |
m68k: Revive reporting of spurious interrupts
commit 2502b667ea835ee16685c74b2a0d89ba8afe117a ("Change the m68knommu irq
handling to use the generic irq framework.") removed the reporting of spurious
interrupts on nommu (68328 and 68360).
Bring it back in a generic way, using "atomic_t irq_err_count", as that's what
most of the other architectures are using.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/kernel/irq.c')
-rw-r--r-- | arch/m68k/kernel/irq.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/m68k/kernel/irq.c b/arch/m68k/kernel/irq.c index 544b8717d499..c73988cfa90f 100644 --- a/arch/m68k/kernel/irq.c +++ b/arch/m68k/kernel/irq.c @@ -28,3 +28,13 @@ asmlinkage void do_IRQ(int irq, struct pt_regs *regs) set_irq_regs(oldregs); } + + +/* The number of spurious interrupts */ +atomic_t irq_err_count; + +int arch_show_interrupts(struct seq_file *p, int prec) +{ + seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count)); + return 0; +} |