Skip to content

Commit

Permalink
[S390] ap bus: add support for irq statistics
Browse files Browse the repository at this point in the history
Add support for AP Bus I/O interrupt statistics in /proc/interrupts.

Signed-off-by: Holger Dengler <hd@linux.vnet.ibm.com>
Signed-off-by: Felix Beck <felix.beck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Holger Dengler authored and Martin Schwidefsky committed Jan 5, 2011
1 parent 85b81cd commit 62d146f
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 @@ -25,6 +25,7 @@ enum interruption_class {
IOINT_LCS,
IOINT_CLW,
IOINT_CTC,
IOINT_APB,
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 @@ -42,6 +42,7 @@ static const struct irq_class intrclass_names[] = {
{.name = "LCS", .desc = "[I/O] LCS" },
{.name = "CLW", .desc = "[I/O] CLAW" },
{.name = "CTC", .desc = "[I/O] CTC" },
{.name = "APB", .desc = "[I/O] AP Bus" },
{.name = "NMI", .desc = "[NMI] Machine Check" },
};

Expand Down
2 changes: 2 additions & 0 deletions drivers/s390/crypto/ap_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define KMSG_COMPONENT "ap"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include <linux/kernel_stat.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
Expand Down Expand Up @@ -1042,6 +1043,7 @@ static int ap_probe_device_type(struct ap_device *ap_dev)

static void ap_interrupt_handler(void *unused1, void *unused2)
{
kstat_cpu(smp_processor_id()).irqs[IOINT_APB]++;
tasklet_schedule(&ap_tasklet);
}

Expand Down

0 comments on commit 62d146f

Please sign in to comment.