aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/irq.c
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2011-04-10 16:26:15 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-04-27 00:18:37 -0400
commit73706c3283d755d3725c6a48a18e677a15ced8be (patch)
treebab6c6fb96515cc92aef9f285934c22a5617d39f /arch/powerpc/kernel/irq.c
parente70606eb9beb683ce3991936267deab64ab56d95 (diff)
powerpc/irq: Dump chip data pointer in virq_mapping
This can be useful for differentiating interrupts on the same host but with different chip data. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r--arch/powerpc/kernel/irq.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index ea09512a68c3..4f5d6e751a65 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -1086,10 +1086,11 @@ static int virq_debug_show(struct seq_file *m, void *private)
1086 struct irq_desc *desc; 1086 struct irq_desc *desc;
1087 const char *p; 1087 const char *p;
1088 static const char none[] = "none"; 1088 static const char none[] = "none";
1089 void *data;
1089 int i; 1090 int i;
1090 1091
1091 seq_printf(m, "%-5s %-7s %-15s %s\n", "virq", "hwirq", 1092 seq_printf(m, "%-5s %-7s %-15s %-18s %s\n", "virq", "hwirq",
1092 "chip name", "host name"); 1093 "chip name", "chip data", "host name");
1093 1094
1094 for (i = 1; i < nr_irqs; i++) { 1095 for (i = 1; i < nr_irqs; i++) {
1095 desc = irq_to_desc(i); 1096 desc = irq_to_desc(i);
@@ -1111,6 +1112,9 @@ static int virq_debug_show(struct seq_file *m, void *private)
1111 p = none; 1112 p = none;
1112 seq_printf(m, "%-15s ", p); 1113 seq_printf(m, "%-15s ", p);
1113 1114
1115 data = irq_desc_get_chip_data(desc);
1116 seq_printf(m, "0x%16p ", data);
1117
1114 if (irq_map[i].host && irq_map[i].host->of_node) 1118 if (irq_map[i].host && irq_map[i].host->of_node)
1115 p = irq_map[i].host->of_node->full_name; 1119 p = irq_map[i].host->of_node->full_name;
1116 else 1120 else