aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-05-21 12:36:13 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-05-21 12:36:13 -0400
commitd8586ba6e1415150e1bab89f0a05447bb6f2d6d5 (patch)
treedb72cceeb867cbd274a0af28f886683b53d90bca /arch
parent05ff3004d278b54760abd71530506d803182c71d (diff)
sh: irq: Provide an arch_probe_nr_irqs() that wraps the machvec def.
This is just a simple arch_probe_nr_irqs() stub that wraps to the platform defined number of IRQs. This can be made gradually more intelligent based on what we can infer from the INTC tables and so on. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/irq.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/kernel/irq.c b/arch/sh/kernel/irq.c
index 878532b61762..3d09062f4682 100644
--- a/arch/sh/kernel/irq.c
+++ b/arch/sh/kernel/irq.c
@@ -279,3 +279,11 @@ void __init init_IRQ(void)
279 279
280 irq_ctx_init(smp_processor_id()); 280 irq_ctx_init(smp_processor_id());
281} 281}
282
283#ifdef CONFIG_SPARSE_IRQ
284int __init arch_probe_nr_irqs(void)
285{
286 nr_irqs = sh_mv.mv_nr_irqs;
287 return 0;
288}
289#endif