projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05ff300
)
sh: irq: Provide an arch_probe_nr_irqs() that wraps the machvec def.
author
Paul Mundt
<lethal@linux-sh.org>
Thu, 21 May 2009 16:36:13 +0000
(
01:36
+0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Thu, 21 May 2009 16:36:13 +0000
(
01:36
+0900)
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>
arch/sh/kernel/irq.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/kernel/irq.c
b/arch/sh/kernel/irq.c
index 878532b617625c12e5768b173e507ec4884d1ef1..3d09062f4682718b43ec607649ca466ddcc6f670 100644
(file)
--- a/
arch/sh/kernel/irq.c
+++ b/
arch/sh/kernel/irq.c
@@
-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