提交 62d146ff 编写于 作者: H Holger Dengler 提交者: Martin Schwidefsky

[S390] ap bus: add support for irq statistics

Add support for AP Bus I/O interrupt statistics in /proc/interrupts.
Signed-off-by: NHolger Dengler <hd@linux.vnet.ibm.com>
Signed-off-by: NFelix Beck <felix.beck@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 85b81cdd
...@@ -25,6 +25,7 @@ enum interruption_class { ...@@ -25,6 +25,7 @@ enum interruption_class {
IOINT_LCS, IOINT_LCS,
IOINT_CLW, IOINT_CLW,
IOINT_CTC, IOINT_CTC,
IOINT_APB,
NMI_NMI, NMI_NMI,
NR_IRQS, NR_IRQS,
}; };
......
...@@ -42,6 +42,7 @@ static const struct irq_class intrclass_names[] = { ...@@ -42,6 +42,7 @@ static const struct irq_class intrclass_names[] = {
{.name = "LCS", .desc = "[I/O] LCS" }, {.name = "LCS", .desc = "[I/O] LCS" },
{.name = "CLW", .desc = "[I/O] CLAW" }, {.name = "CLW", .desc = "[I/O] CLAW" },
{.name = "CTC", .desc = "[I/O] CTC" }, {.name = "CTC", .desc = "[I/O] CTC" },
{.name = "APB", .desc = "[I/O] AP Bus" },
{.name = "NMI", .desc = "[NMI] Machine Check" }, {.name = "NMI", .desc = "[NMI] Machine Check" },
}; };
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#define KMSG_COMPONENT "ap" #define KMSG_COMPONENT "ap"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/kernel_stat.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/delay.h> #include <linux/delay.h>
...@@ -1042,6 +1043,7 @@ static int ap_probe_device_type(struct ap_device *ap_dev) ...@@ -1042,6 +1043,7 @@ static int ap_probe_device_type(struct ap_device *ap_dev)
static void ap_interrupt_handler(void *unused1, void *unused2) static void ap_interrupt_handler(void *unused1, void *unused2)
{ {
kstat_cpu(smp_processor_id()).irqs[IOINT_APB]++;
tasklet_schedule(&ap_tasklet); tasklet_schedule(&ap_tasklet);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册