diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2009-04-05 12:05:02 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2009-04-07 01:19:00 -0400 |
commit | c7d07fdd5af084bbd0a7921f9b07037b9bc8829d (patch) | |
tree | a4204247e8106531ee09e91a249bf632eed4d2e2 /arch/powerpc/kernel/irq.c | |
parent | cb93d568e1ed2596e27f35b39241fe83955d9b26 (diff) |
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 'arch/powerpc/kernel/irq.c')
-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, | |||
672 | return NO_IRQ; | 672 | return NO_IRQ; |
673 | } | 673 | } |
674 | } | 674 | } |
675 | pr_debug("irq: -> obtained virq %d\n", virq); | ||
676 | 675 | ||
677 | if (irq_setup_virq(host, virq, hwirq)) | 676 | if (irq_setup_virq(host, virq, hwirq)) |
678 | return NO_IRQ; | 677 | return NO_IRQ; |
679 | 678 | ||
679 | printk(KERN_DEBUG "irq: irq %lu on host %s mapped to virtual irq %u\n", | ||
680 | hwirq, host->of_node ? host->of_node->full_name : "null", virq); | ||
681 | |||
680 | return virq; | 682 | return virq; |
681 | } | 683 | } |
682 | EXPORT_SYMBOL_GPL(irq_create_mapping); | 684 | EXPORT_SYMBOL_GPL(irq_create_mapping); |