sh: intc: Handle legacy IRQ reservation in vector map.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 2 Nov 2009 06:43:20 +0000 (15:43 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 2 Nov 2009 06:43:20 +0000 (15:43 +0900)
commit45b9deaf14e74543371aa8faea69c14e27b038c6
tree485b9beab7f908557ab816fa473d7a5bdb494841
parent3d0de414423a20af741b692243317f423827489b
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>
arch/sh/kernel/irq.c
drivers/sh/intc.c
include/linux/sh_intc.h