From b558d103475f97696c74268c17decdc1d2f2928c Mon Sep 17 00:00:00 2001 From: Michael Ellerman Date: Tue, 13 Oct 2009 19:44:44 +0000 Subject: [PATCH] --- yaml --- r: 175707 b: refs/heads/master c: 551b81f26ffc2135b8490babad1a9ab12d617e8d h: refs/heads/master i: 175705: 049846ca9cef00e35fe4724af8b19ef56dd442df 175703: bac568c6df208e7216e9223ec96e2235fa00e25e v: v3 --- [refs] | 2 +- trunk/arch/powerpc/Kconfig | 10 ++++++++++ trunk/arch/powerpc/include/asm/irq.h | 4 ++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 7156809a91d6..fd7659c042c1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d35ef90bf9e7cab9aa85e9c0724bd1ac6f784601 +refs/heads/master: 551b81f26ffc2135b8490babad1a9ab12d617e8d diff --git a/trunk/arch/powerpc/Kconfig b/trunk/arch/powerpc/Kconfig index c01580d86fdd..3aa79f8e39e4 100644 --- a/trunk/arch/powerpc/Kconfig +++ b/trunk/arch/powerpc/Kconfig @@ -56,6 +56,16 @@ config IRQ_PER_CPU bool default y +config NR_IRQS + int "Number of virtual interrupt numbers" + range 32 512 + default "512" + help + This defines the number of virtual interrupt numbers the kernel + can manage. Virtual interrupt numbers are what you see in + /proc/interrupts. If you configure your system to have too few, + drivers will fail to load or worse - handle with care. + config STACKTRACE_SUPPORT bool default y diff --git a/trunk/arch/powerpc/include/asm/irq.h b/trunk/arch/powerpc/include/asm/irq.h index bbcd1aaf3dfd..b83fcc81faed 100644 --- a/trunk/arch/powerpc/include/asm/irq.h +++ b/trunk/arch/powerpc/include/asm/irq.h @@ -34,8 +34,8 @@ extern atomic_t ppc_n_lost_interrupts; */ #define NO_IRQ_IGNORE ((unsigned int)-1) -/* Total number of virq in the platform (make it a CONFIG_* option ? */ -#define NR_IRQS 512 +/* Total number of virq in the platform */ +#define NR_IRQS CONFIG_NR_IRQS /* Number of irqs reserved for the legacy controller */ #define NUM_ISA_INTERRUPTS 16