aboutsummaryrefslogtreecommitdiff
path: root/drivers/s390/cio
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2012-08-28 16:48:47 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-09-26 15:45:00 +0200
commit2e73c2cf78f797f3ff299ca39b210bceb40ab804 (patch)
tree22d4751c236bb57d0cff1f2cf5d5734f82e9afc5 /drivers/s390/cio
parenteadb86ab80545d04a0ee576e92ba4447621cdb02 (diff)
downloadvexpress-lsk-2e73c2cf78f797f3ff299ca39b210bceb40ab804.tar.gz
s390/eadm_sch: add support for irq statistics
Add support for EADM 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/cio')
-rw-r--r--drivers/s390/cio/eadm_sch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/cio/eadm_sch.c b/drivers/s390/cio/eadm_sch.c
index 3fc882f6668..6c967340046 100644
--- a/drivers/s390/cio/eadm_sch.c
+++ b/drivers/s390/cio/eadm_sch.c
@@ -5,6 +5,7 @@
* Author(s): Sebastian Ott <sebott@linux.vnet.ibm.com>
*/
+#include <linux/kernel_stat.h>
#include <linux/workqueue.h>
#include <linux/spinlock.h>
#include <linux/device.h>
@@ -138,6 +139,8 @@ static void eadm_subchannel_irq(struct subchannel *sch)
EADM_LOG(6, "irq");
EADM_LOG_HEX(6, irb, sizeof(*irb));
+ kstat_cpu(smp_processor_id()).irqs[IOINT_ADM]++;
+
if ((scsw->stctl & (SCSW_STCTL_ALERT_STATUS | SCSW_STCTL_STATUS_PEND))
&& scsw->eswf == 1 && irb->esw.eadm.erw.r)
error = -EIO;