Skip to content

Commit

Permalink
[S390] claw: add support for irq statistics
Browse files Browse the repository at this point in the history
Add support for CLAW 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>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jan 5, 2011
1 parent 096a616 commit 355eb40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/s390/include/asm/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ enum interruption_class {
IOINT_TAP,
IOINT_VMR,
IOINT_LCS,
IOINT_CLW,
NMI_NMI,
NR_IRQS,
};
Expand Down
1 change: 1 addition & 0 deletions arch/s390/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ static const struct irq_class intrclass_names[] = {
{.name = "TAP", .desc = "[I/O] Tape" },
{.name = "VMR", .desc = "[I/O] Unit Record Devices" },
{.name = "LCS", .desc = "[I/O] LCS" },
{.name = "CLW", .desc = "[I/O] CLAW" },
{.name = "NMI", .desc = "[NMI] Machine Check" },
};

Expand Down
2 changes: 2 additions & 0 deletions drivers/s390/net/claw.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

#define KMSG_COMPONENT "claw"

#include <linux/kernel_stat.h>
#include <asm/ccwdev.h>
#include <asm/ccwgroup.h>
#include <asm/debug.h>
Expand Down Expand Up @@ -640,6 +641,7 @@ claw_irq_handler(struct ccw_device *cdev,
struct claw_env *p_env;
struct chbk *p_ch_r=NULL;

kstat_cpu(smp_processor_id()).irqs[IOINT_CLW]++;
CLAW_DBF_TEXT(4, trace, "clawirq");
/* Bypass all 'unsolicited interrupts' */
privptr = dev_get_drvdata(&cdev->dev);
Expand Down

0 comments on commit 355eb40

Please sign in to comment.