aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2007-06-04 00:47:04 -0400
committerPaul Mackerras <paulus@samba.org>2007-06-25 03:02:05 -0400
commit35923f12e42a3baf4ac6da7c05cf5f7478e5a7c6 (patch)
treed0fcdb4a7f15cae68c8bb4dbb8346b494503410e
parentb0e80206cc42334032f18edee0ab591b0f275e12 (diff)
[POWERPC] Uninline and export virq_to_hw()
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>
-rw-r--r--arch/powerpc/kernel/irq.c6
-rw-r--r--include/asm-powerpc/irq.h5
2 files changed, 7 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index b74b0fd764b2..0a769893c5c3 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -411,6 +411,12 @@ struct irq_map_entry irq_map[NR_IRQS];
411static unsigned int irq_virq_count = NR_IRQS; 411static unsigned int irq_virq_count = NR_IRQS;
412static struct irq_host *irq_default_host; 412static struct irq_host *irq_default_host;
413 413
414irq_hw_number_t virq_to_hw(unsigned int virq)
415{
416 return irq_map[virq].hwirq;
417}
418EXPORT_SYMBOL_GPL(virq_to_hw);
419
414struct irq_host *irq_alloc_host(unsigned int revmap_type, 420struct irq_host *irq_alloc_host(unsigned int revmap_type,
415 unsigned int revmap_arg, 421 unsigned int revmap_arg,
416 struct irq_host_ops *ops, 422 struct irq_host_ops *ops,
diff --git a/include/asm-powerpc/irq.h b/include/asm-powerpc/irq.h
index 4734cc178db5..05dd5a3eb3aa 100644
--- a/include/asm-powerpc/irq.h
+++ b/include/asm-powerpc/irq.h
@@ -138,10 +138,7 @@ struct irq_map_entry {
138 138
139extern struct irq_map_entry irq_map[NR_IRQS]; 139extern struct irq_map_entry irq_map[NR_IRQS];
140 140
141static inline irq_hw_number_t virq_to_hw(unsigned int virq) 141extern irq_hw_number_t virq_to_hw(unsigned int virq);
142{
143 return irq_map[virq].hwirq;
144}
145 142
146/** 143/**
147 * irq_alloc_host - Allocate a new irq_host data structure 144 * irq_alloc_host - Allocate a new irq_host data structure