Commit 3ad19b8fb07497f975aa6aba187198ce11191dd2

Authored by Sebastian Ott
Committed by Martin Schwidefsky
1 parent 94c163663f

s390/cio: fix irq statistics

When we fetch an interrupt on the CCW console using tsch (via
ccw_device_wait_idle formerly known as wait_cons_dev) we increment
the irq count for the affected interruption class but it is not
accounted as an IO interrupt.

This is broken since commit b603d258a43b4e7339660bdd3b5c25eacd603e54
"s390: remove superfluous tpi from wait_cons_dev"

Fix it so that the sum of the individual interrupts per class matches
the number of IO interrupts again.

Reported-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/s390/cio/cio.c
... ... @@ -647,6 +647,7 @@
647 647 local_bh_disable();
648 648 irq_enter();
649 649 }
  650 + kstat_incr_irqs_this_cpu(IO_INTERRUPT, NULL);
650 651 if (sch->driver && sch->driver->irq)
651 652 sch->driver->irq(sch);
652 653 else