[RFC PATCH 2/5] irq: Show the parent chained interrupt in debugfs

Radu Rendec posted 5 patches 2 years, 8 months ago
[RFC PATCH 2/5] irq: Show the parent chained interrupt in debugfs
Posted by Radu Rendec 2 years, 8 months ago
This is a trivial change to expose the parent chained interrupt. The
intention is to make it easier to debug chained interrupts, particularly
in the context of setting the SMP affinity.

Signed-off-by: Radu Rendec <rrendec@redhat.com>
---
 kernel/irq/debugfs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/irq/debugfs.c b/kernel/irq/debugfs.c
index bbcaac64038ef..3ada976df8612 100644
--- a/kernel/irq/debugfs.c
+++ b/kernel/irq/debugfs.c
@@ -177,6 +177,7 @@ static int irq_debug_show(struct seq_file *m, void *p)
 			    ARRAY_SIZE(irqdesc_istates));
 	seq_printf(m, "ddepth:   %u\n", desc->depth);
 	seq_printf(m, "wdepth:   %u\n", desc->wake_depth);
+	seq_printf(m, "parent:   %d\n", desc->parent_irq);
 	seq_printf(m, "dstate:   0x%08x\n", irqd_get(data));
 	irq_debug_show_bits(m, 0, irqd_get(data), irqdata_states,
 			    ARRAY_SIZE(irqdata_states));
-- 
2.40.1