diff options
Diffstat (limited to 'arch/powerpc/kernel/traps.c')
-rw-r--r-- | arch/powerpc/kernel/traps.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index 0a320dbd950a..895da29e7db8 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arch/powerpc/kernel/traps.c | |||
@@ -483,6 +483,8 @@ void machine_check_exception(struct pt_regs *regs) | |||
483 | { | 483 | { |
484 | int recover = 0; | 484 | int recover = 0; |
485 | 485 | ||
486 | __get_cpu_var(irq_stat).mce_exceptions++; | ||
487 | |||
486 | /* See if any machine dependent calls. In theory, we would want | 488 | /* See if any machine dependent calls. In theory, we would want |
487 | * to call the CPU first, and call the ppc_md. one if the CPU | 489 | * to call the CPU first, and call the ppc_md. one if the CPU |
488 | * one returns a positive number. However there is existing code | 490 | * one returns a positive number. However there is existing code |
@@ -965,6 +967,8 @@ void vsx_unavailable_exception(struct pt_regs *regs) | |||
965 | 967 | ||
966 | void performance_monitor_exception(struct pt_regs *regs) | 968 | void performance_monitor_exception(struct pt_regs *regs) |
967 | { | 969 | { |
970 | __get_cpu_var(irq_stat).pmu_irqs++; | ||
971 | |||
968 | perf_irq(regs); | 972 | perf_irq(regs); |
969 | } | 973 | } |
970 | 974 | ||