Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130910
b: refs/heads/master
c: 3605fb0
h: refs/heads/master
v: v3
  • Loading branch information
Robin Getz authored and Bryan Wu committed Feb 4, 2009
1 parent 1a79e24 commit a4629c2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 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: 0be58939146f28394a04b61fec7e0676cdafa47e
refs/heads/master: 3605fb09652beeb2e8244c52a9db5b76cc12295e
1 change: 1 addition & 0 deletions trunk/arch/blackfin/include/asm/pda.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ struct blackfin_pda { /* Per-processor Data Area */
unsigned long icplb_fault_addr;
unsigned long retx;
unsigned long seqstat;
unsigned int __nmi_count; /* number of times NMI asserted on this CPU */
};

extern struct blackfin_pda cpu_pda[];
Expand Down
8 changes: 7 additions & 1 deletion trunk/arch/blackfin/kernel/irqchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <asm/trace.h>
#include <asm/pda.h>

static atomic_t irq_err_count;
static spinlock_t irq_controller_lock;
Expand Down Expand Up @@ -91,8 +92,13 @@ int show_interrupts(struct seq_file *p, void *v)
seq_putc(p, '\n');
skip:
spin_unlock_irqrestore(&irq_desc[i].lock, flags);
} else if (i == NR_IRQS)
} else if (i == NR_IRQS) {
seq_printf(p, "NMI: ");
for_each_online_cpu(j)
seq_printf(p, "%10u ", cpu_pda[j].__nmi_count);
seq_printf(p, " CORE Non Maskable Interrupt\n");
seq_printf(p, "Err: %10u\n", atomic_read(&irq_err_count));
}
return 0;
}

Expand Down

0 comments on commit a4629c2

Please sign in to comment.