diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2017-08-01 22:00:53 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-08-10 22:30:01 +1000 |
commit | ca41ad4377072e3e51593a2a9593c6cdbf4a5c0d (patch) | |
tree | b0f332e4b2d68a9fe5a77b9409520a6e1d119473 /arch/powerpc/kernel/traps.c | |
parent | 75eb767e4c417379abde72435c50f25c454f3099 (diff) | |
download | linux-ca41ad4377072e3e51593a2a9593c6cdbf4a5c0d.tar.gz linux-ca41ad4377072e3e51593a2a9593c6cdbf4a5c0d.tar.bz2 linux-ca41ad4377072e3e51593a2a9593c6cdbf4a5c0d.zip |
powerpc: Add irq accounting for system reset interrupts
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/traps.c')
-rw-r--r-- | arch/powerpc/kernel/traps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index d42c567e3c29..ec1557f1b157 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arch/powerpc/kernel/traps.c @@ -288,6 +288,8 @@ void system_reset_exception(struct pt_regs *regs) if (!nested) nmi_enter(); + __this_cpu_inc(irq_stat.sreset_irqs); + /* See if any machine dependent calls */ if (ppc_md.system_reset_exception) { if (ppc_md.system_reset_exception(regs)) |