Commit b86651721f18f40319efe94ed3eac2d26682e5b9

Authored by Heiko Carstens
Committed by Martin Schwidefsky
1 parent 3fe22f6bfd

[S390] tape: add support for irq statistics

Add support for ccw based tape I/O interrupt statistics in /proc/interrupts.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

Showing 3 changed files with 4 additions and 0 deletions Side-by-side Diff

arch/s390/include/asm/irq.h
... ... @@ -20,6 +20,7 @@
20 20 IOINT_DAS,
21 21 IOINT_C15,
22 22 IOINT_C70,
  23 + IOINT_TAP,
23 24 NMI_NMI,
24 25 NR_IRQS,
25 26 };
arch/s390/kernel/irq.c
... ... @@ -37,6 +37,7 @@
37 37 {.name = "DAS", .desc = "[I/O] DASD" },
38 38 {.name = "C15", .desc = "[I/O] 3215" },
39 39 {.name = "C70", .desc = "[I/O] 3270" },
  40 + {.name = "TAP", .desc = "[I/O] Tape" },
40 41 {.name = "NMI", .desc = "[NMI] Machine Check" },
41 42 };
42 43  
drivers/s390/char/tape_core.c
... ... @@ -14,6 +14,7 @@
14 14 #define KMSG_COMPONENT "tape"
15 15 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
16 16  
  17 +#include <linux/kernel_stat.h>
17 18 #include <linux/module.h>
18 19 #include <linux/init.h> // for kernel parameters
19 20 #include <linux/kmod.h> // for requesting modules
... ... @@ -1114,6 +1115,7 @@
1114 1115 struct tape_request *request;
1115 1116 int rc;
1116 1117  
  1118 + kstat_cpu(smp_processor_id()).irqs[IOINT_TAP]++;
1117 1119 device = dev_get_drvdata(&cdev->dev);
1118 1120 if (device == NULL) {
1119 1121 return;