提交 d8586ba6 编写于 作者: P Paul Mundt

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: NPaul Mundt <lethal@linux-sh.org>
上级 05ff3004
...@@ -279,3 +279,11 @@ void __init init_IRQ(void) ...@@ -279,3 +279,11 @@ void __init init_IRQ(void)
irq_ctx_init(smp_processor_id()); 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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册