diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2009-04-05 18:05:02 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2009-04-07 07:19:00 +0200 |
commit | c7d07fdd5af084bbd0a7921f9b07037b9bc8829d (patch) | |
tree | a4204247e8106531ee09e91a249bf632eed4d2e2 /arch/powerpc/kernel/irq.c | |
parent | powerpc: Correct dependency of KEXEC (diff) | |
download | linux-c7d07fdd5af084bbd0a7921f9b07037b9bc8829d.tar.xz linux-c7d07fdd5af084bbd0a7921f9b07037b9bc8829d.zip |
powerpc: Print information about mapping hw irqs to virtual irqs
The irq remapping layer seems to cause some confusion when people
see a different irq number in /proc/interrupts vs the one they
request in their driver or DTS.
So have the irq remapping layer print out a message when we map an
irq. The message is only printed the first time the irq is mapped,
and it's KERN_DEBUG so most people won't see it.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to '')
-rw-r--r-- | arch/powerpc/kernel/irq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 5576147e57b6..8c1a4966867e 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c @@ -672,11 +672,13 @@ unsigned int irq_create_mapping(struct irq_host *host, return NO_IRQ; } } - pr_debug("irq: -> obtained virq %d\n", virq); if (irq_setup_virq(host, virq, hwirq)) return NO_IRQ; + printk(KERN_DEBUG "irq: irq %lu on host %s mapped to virtual irq %u\n", + hwirq, host->of_node ? host->of_node->full_name : "null", virq); + return virq; } EXPORT_SYMBOL_GPL(irq_create_mapping); |