diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-11-02 01:43:20 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-11-02 01:43:20 -0500 |
commit | 45b9deaf14e74543371aa8faea69c14e27b038c6 (patch) | |
tree | 485b9beab7f908557ab816fa473d7a5bdb494841 /include/linux/sh_intc.h | |
parent | 3d0de414423a20af741b692243317f423827489b (diff) |
sh: intc: Handle legacy IRQ reservation in vector map.
Different CPUs will have different starting vectors, with varying
amounts of reserved or unusable vector space prior to the first slot.
This introduces a legacy vector reservation system that inserts itself in
between the CPU vector map registration and the platform specific IRQ
setup. This works fine in practice as the only new vectors that boards
need to establish on their own should be dynamically allocated rather
than arbitrarily assigned. As a plus, this also makes all of the
converted platforms sparseirq ready.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/linux/sh_intc.h')
-rw-r--r-- | include/linux/sh_intc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sh_intc.h b/include/linux/sh_intc.h index 4e4b22d50164..4ef246f14654 100644 --- a/include/linux/sh_intc.h +++ b/include/linux/sh_intc.h | |||
@@ -84,4 +84,7 @@ struct intc_desc symbol __initdata = { \ | |||
84 | void __init register_intc_controller(struct intc_desc *desc); | 84 | void __init register_intc_controller(struct intc_desc *desc); |
85 | int intc_set_priority(unsigned int irq, unsigned int prio); | 85 | int intc_set_priority(unsigned int irq, unsigned int prio); |
86 | 86 | ||
87 | int reserve_irq_vector(unsigned int irq); | ||
88 | void reserve_irq_legacy(void); | ||
89 | |||
87 | #endif /* __SH_INTC_H */ | 90 | #endif /* __SH_INTC_H */ |