From 2e73c2cf78f797f3ff299ca39b210bceb40ab804 Mon Sep 17 00:00:00 2001 From: Sebastian Ott Date: Tue, 28 Aug 2012 16:48:47 +0200 Subject: s390/eadm_sch: add support for irq statistics Add support for EADM interrupt statistics in /proc/interrupts. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky --- drivers/s390/cio/eadm_sch.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/s390/cio') 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 */ +#include #include #include #include @@ -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; -- cgit v1.2.3-70-g09d2