diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2011-10-30 10:16:54 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-10-30 10:16:44 -0400 |
commit | 65b4e403ac926f5196c2f28c4ec783d32dc322f0 (patch) | |
tree | 65db1f414961da1794ac7dfc452ea00fda9b6503 /drivers/s390 | |
parent | dad572e370138539ea45be9b53d168568e562565 (diff) |
[S390] chsc_sch: add support for irq statistics
Add support for CHSC I/O interrupt statistics in /proc/interrupts.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/chsc_sch.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/s390/cio/chsc_sch.c b/drivers/s390/cio/chsc_sch.c index e950f1ad4dd1..0c87b0fc7714 100644 --- a/drivers/s390/cio/chsc_sch.c +++ b/drivers/s390/cio/chsc_sch.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Driver for s390 chsc subchannels | 2 | * Driver for s390 chsc subchannels |
3 | * | 3 | * |
4 | * Copyright IBM Corp. 2008, 2009 | 4 | * Copyright IBM Corp. 2008, 2011 |
5 | * | 5 | * |
6 | * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com> | 6 | * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com> |
7 | * | 7 | * |
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/uaccess.h> | 13 | #include <linux/uaccess.h> |
14 | #include <linux/miscdevice.h> | 14 | #include <linux/miscdevice.h> |
15 | #include <linux/kernel_stat.h> | ||
15 | 16 | ||
16 | #include <asm/compat.h> | 17 | #include <asm/compat.h> |
17 | #include <asm/cio.h> | 18 | #include <asm/cio.h> |
@@ -56,6 +57,8 @@ static void chsc_subchannel_irq(struct subchannel *sch) | |||
56 | 57 | ||
57 | CHSC_LOG(4, "irb"); | 58 | CHSC_LOG(4, "irb"); |
58 | CHSC_LOG_HEX(4, irb, sizeof(*irb)); | 59 | CHSC_LOG_HEX(4, irb, sizeof(*irb)); |
60 | kstat_cpu(smp_processor_id()).irqs[IOINT_CSC]++; | ||
61 | |||
59 | /* Copy irb to provided request and set done. */ | 62 | /* Copy irb to provided request and set done. */ |
60 | if (!request) { | 63 | if (!request) { |
61 | CHSC_MSG(0, "Interrupt on sch 0.%x.%04x with no request\n", | 64 | CHSC_MSG(0, "Interrupt on sch 0.%x.%04x with no request\n", |