aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/oprofile
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2011-05-23 04:24:48 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2011-05-23 04:24:32 -0400
commitfcdd65b0e7bbbd6aef9be2f20e7c238759cf0b41 (patch)
tree879ab0cc7112001e682147487fdee3a3e856c2a5 /arch/s390/oprofile
parentbfac1d2d34990bf6ce0abf947fd5043cf412256b (diff)
[S390] oprofile: add missing irq stats counter
Count CPU measurement external interrupts as well. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'arch/s390/oprofile')
-rw-r--r--arch/s390/oprofile/hwsampler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/oprofile/hwsampler.c b/arch/s390/oprofile/hwsampler.c
index 8e686bfe2959..cb4338ccbf7b 100644
--- a/arch/s390/oprofile/hwsampler.c
+++ b/arch/s390/oprofile/hwsampler.c
@@ -5,6 +5,7 @@
5 * Author: Heinz Graalfs <graalfs@de.ibm.com> 5 * Author: Heinz Graalfs <graalfs@de.ibm.com>
6 */ 6 */
7 7
8#include <linux/kernel_stat.h>
8#include <linux/kernel.h> 9#include <linux/kernel.h>
9#include <linux/module.h> 10#include <linux/module.h>
10#include <linux/smp.h> 11#include <linux/smp.h>
@@ -677,6 +678,7 @@ static void hws_ext_handler(unsigned int ext_int_code,
677 int cpu; 678 int cpu;
678 struct hws_cpu_buffer *cb; 679 struct hws_cpu_buffer *cb;
679 680
681 kstat_cpu(smp_processor_id()).irqs[EXTINT_CPM]++;
680 cpu = smp_processor_id(); 682 cpu = smp_processor_id();
681 cb = &per_cpu(sampler_cpu_buffer, cpu); 683 cb = &per_cpu(sampler_cpu_buffer, cpu);
682 684