diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2009-10-13 19:45:03 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-10-30 17:21:31 +1100 |
commit | cd015707176820b86d07b5dffdecfefdd539a497 (patch) | |
tree | c71a90d99a1dee4d5a24f883230c201c43cd8c0d /arch/powerpc/include/asm | |
parent | 750ab112919220a1d14491ae210b689bcb7d6d66 (diff) | |
download | kernel-crypto-cd015707176820b86d07b5dffdecfefdd539a497.tar.gz kernel-crypto-cd015707176820b86d07b5dffdecfefdd539a497.tar.xz kernel-crypto-cd015707176820b86d07b5dffdecfefdd539a497.zip |
powerpc: Enable sparse irq_descs on powerpc
Defining CONFIG_SPARSE_IRQ enables generic code that gets rid of the
static irq_desc array, and replaces it with an array of pointers to
irq_descs.
It also allows node local allocation of irq_descs, however we
currently don't have the information available to do that, so we just
allocate them on all on node 0.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r-- | arch/powerpc/include/asm/irq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/irq.h b/arch/powerpc/include/asm/irq.h index 03dc28cdb4d..c85a32f1a17 100644 --- a/arch/powerpc/include/asm/irq.h +++ b/arch/powerpc/include/asm/irq.h @@ -38,6 +38,9 @@ extern atomic_t ppc_n_lost_interrupts; /* Number of irqs reserved for the legacy controller */ #define NUM_ISA_INTERRUPTS 16 +/* Same thing, used by the generic IRQ code */ +#define NR_IRQS_LEGACY NUM_ISA_INTERRUPTS + /* This type is the placeholder for a hardware interrupt number. It has to * be big enough to enclose whatever representation is used by a given * platform. |