aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2007-08-16 11:50:44 -0400
committerPaul Mundt <lethal@linux-sh.org>2007-09-20 22:57:50 -0400
commit3d37d94e5aab669f5a492bb3cda67bbbbbca50b8 (patch)
tree7066d6e40e2da4b9fdc9b169909ae65d88068df1 /include
parent5c37e025352b993d8726b0207ff2270b2f2bc7d6 (diff)
sh: intc - primary priority masking fixes
This patch contains various intc fixes for problems reported by Markus Brunner on the linuxsh-dev mailing list: http://marc.info/?l=linuxsh-dev&m=118701948224991&w=1 Apart from added comments, the fixes are: - add intc_set_priority() function prototype to hw_irq.h - fix off-by-one error in intc_set_priority() - make sure _INTC_WIDTH() is set for primary priority masking Big thanks to Markus for finding these problems. Version two fixes a compile error and an inverted primary check. Signed-off-by: Magnus Damm <damm@igel.co.jp> Acked-by: Markus Brunner <super.firetwister@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-sh/hw_irq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-sh/hw_irq.h b/include/asm-sh/hw_irq.h
index 0c016e949931..f9c90670e147 100644
--- a/include/asm-sh/hw_irq.h
+++ b/include/asm-sh/hw_irq.h
@@ -90,6 +90,7 @@ struct intc_desc symbol __initdata = { \
90} 90}
91 91
92void __init register_intc_controller(struct intc_desc *desc); 92void __init register_intc_controller(struct intc_desc *desc);
93int intc_set_priority(unsigned int irq, unsigned int prio);
93 94
94void __init plat_irq_setup(void); 95void __init plat_irq_setup(void);
95 96