Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85b81cdd authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

[S390] ctc: add support for irq statistics



Add support for CTC I/O interrupt statistics in /proc/interrupts.

Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 355eb402
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -24,6 +24,7 @@ enum interruption_class {
	IOINT_VMR,
	IOINT_VMR,
	IOINT_LCS,
	IOINT_LCS,
	IOINT_CLW,
	IOINT_CLW,
	IOINT_CTC,
	NMI_NMI,
	NMI_NMI,
	NR_IRQS,
	NR_IRQS,
};
};
+1 −0
Original line number Original line Diff line number Diff line
@@ -41,6 +41,7 @@ static const struct irq_class intrclass_names[] = {
	{.name = "VMR", .desc = "[I/O] Unit Record Devices" },
	{.name = "VMR", .desc = "[I/O] Unit Record Devices" },
	{.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 = "NMI", .desc = "[NMI] Machine Check" },
	{.name = "NMI", .desc = "[NMI] Machine Check" },
};
};


+2 −0
Original line number Original line Diff line number Diff line
@@ -24,6 +24,7 @@
#define KMSG_COMPONENT "ctcm"
#define KMSG_COMPONENT "ctcm"
#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/kernel.h>
#include <linux/kernel.h>
@@ -1204,6 +1205,7 @@ static void ctcm_irq_handler(struct ccw_device *cdev,
	int cstat;
	int cstat;
	int dstat;
	int dstat;


	kstat_cpu(smp_processor_id()).irqs[IOINT_CTC]++;
	CTCM_DBF_TEXT_(TRACE, CTC_DBF_DEBUG,
	CTCM_DBF_TEXT_(TRACE, CTC_DBF_DEBUG,
		"Enter %s(%s)", CTCM_FUNTAIL, dev_name(&cdev->dev));
		"Enter %s(%s)", CTCM_FUNTAIL, dev_name(&cdev->dev));