Skip to content

Commit

Permalink
sh: irq: Provide an arch_probe_nr_irqs() that wraps the machvec def.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed May 21, 2009
1 parent 05ff300 commit d8586ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/sh/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,3 +279,11 @@ void __init init_IRQ(void)

irq_ctx_init(smp_processor_id());
}

#ifdef CONFIG_SPARSE_IRQ
int __init arch_probe_nr_irqs(void)
{
nr_irqs = sh_mv.mv_nr_irqs;
return 0;
}
#endif

0 comments on commit d8586ba

Please sign in to comment.