]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
s390/eadm_sch: add support for irq statistics
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 28 Aug 2012 14:48:47 +0000 (16:48 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 17 Sep 2012 09:30:18 +0000 (11:30 +0200)
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>
arch/s390/include/asm/irq.h
arch/s390/kernel/irq.c
drivers/s390/cio/eadm_sch.c

index 2b9d41899d21af3201c71916b27806c511f37267..33cc59071581bbc8fafe130cd99aaef34a6cc6d2 100644 (file)
@@ -30,6 +30,7 @@ enum interruption_class {
        IOINT_CLW,
        IOINT_CTC,
        IOINT_APB,
+       IOINT_ADM,
        IOINT_CSC,
        NMI_NMI,
        NR_IRQS,
index dd7630d8aab7ce11ca405fb0c6da17f51b4998d6..a22fdca6a663a69b6d6a98ac85d04a227efbe451 100644 (file)
@@ -55,6 +55,7 @@ static const struct irq_class intrclass_names[] = {
        {.name = "CLW", .desc = "[I/O] CLAW" },
        {.name = "CTC", .desc = "[I/O] CTC" },
        {.name = "APB", .desc = "[I/O] AP Bus" },
+       {.name = "ADM", .desc = "[I/O] EADM Subchannel" },
        {.name = "CSC", .desc = "[I/O] CHSC Subchannel" },
        {.name = "NMI", .desc = "[NMI] Machine Check" },
 };
index 3fc882f66689452e5b3e83653c856f3976f225c0..6c9673400464fdc89b3a462e21820961f1de049a 100644 (file)
@@ -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;