diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-10-14 09:42:28 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-14 09:42:28 +0200 |
commit | 731ba3301de41d2ffae9dd3e0f85f7361d8ad8f4 (patch) | |
tree | fa41931b1bfc7b24e569ab0659460241c4c54b18 /arch/sh/kernel/traps.c | |
parent | sh: TS_RESTORE_SIGMASK conversion. (diff) | |
download | linux-731ba3301de41d2ffae9dd3e0f85f7361d8ad8f4.tar.xz linux-731ba3301de41d2ffae9dd3e0f85f7361d8ad8f4.zip |
sh: Count NMIs in irq_cpustat_t.
This plugs in support for NMI counting per-CPU via irq_cpustat_t.
Modelled after the x86 implementation.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/traps.c')
-rw-r--r-- | arch/sh/kernel/traps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c index a8396f36bd14..d52695df2702 100644 --- a/arch/sh/kernel/traps.c +++ b/arch/sh/kernel/traps.c @@ -95,9 +95,11 @@ BUILD_TRAP_HANDLER(bug) BUILD_TRAP_HANDLER(nmi) { + unsigned int cpu = smp_processor_id(); TRAP_HANDLER_DECL; nmi_enter(); + nmi_count(cpu)++; switch (notify_die(DIE_NMI, "NMI", regs, 0, vec & 0xff, SIGINT)) { case NOTIFY_OK: |