]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] Uninline and export virq_to_hw()
authorOlof Johansson <olof@lixom.net>
Mon, 4 Jun 2007 04:47:04 +0000 (14:47 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 25 Jun 2007 07:02:05 +0000 (17:02 +1000)
Uninline virq_to_hw and export it so modules can use it.  The alternative
would be to export the irq_map array instead, but it's an infrequently
called function, and keeping the array unexported seems considerably
cleaner.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/irq.c
include/asm-powerpc/irq.h

index b74b0fd764b250d1ea570c12aeb84cd3cfb675d3..0a769893c5c39d3502f7141a8251885a752cbb0a 100644 (file)
@@ -411,6 +411,12 @@ struct irq_map_entry irq_map[NR_IRQS];
 static unsigned int irq_virq_count = NR_IRQS;
 static struct irq_host *irq_default_host;
 
+irq_hw_number_t virq_to_hw(unsigned int virq)
+{
+       return irq_map[virq].hwirq;
+}
+EXPORT_SYMBOL_GPL(virq_to_hw);
+
 struct irq_host *irq_alloc_host(unsigned int revmap_type,
                                unsigned int revmap_arg,
                                struct irq_host_ops *ops,
index 4734cc178db55d17cf2c840893236d49202919df..05dd5a3eb3aad70f6fcee5db37ef203be69bcb95 100644 (file)
@@ -138,10 +138,7 @@ struct irq_map_entry {
 
 extern struct irq_map_entry irq_map[NR_IRQS];
 
-static inline irq_hw_number_t virq_to_hw(unsigned int virq)
-{
-       return irq_map[virq].hwirq;
-}
+extern irq_hw_number_t virq_to_hw(unsigned int virq);
 
 /**
  * irq_alloc_host - Allocate a new irq_host data structure