From: Vineet Gupta Date: Wed, 1 Feb 2017 18:14:11 +0000 (-0800) Subject: ARC: [intc-*]: confine NR_CPU_IRQS to intc code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe7b10994618c846481fbcf9212d296df47bc1dc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ARC: [intc-*]: confine NR_CPU_IRQS to intc code And even this willl change in subsequent patches where we resort to using run time info instead... Signed-off-by: Vineet Gupta --- diff --git a/arch/arc/include/asm/irq.h b/arch/arc/include/asm/irq.h index c0fa0d2de400..19deab06b07a 100644 --- a/arch/arc/include/asm/irq.h +++ b/arch/arc/include/asm/irq.h @@ -9,7 +9,6 @@ #ifndef __ASM_ARC_IRQ_H #define __ASM_ARC_IRQ_H -#define NR_CPU_IRQS 32 /* number of interrupt lines of ARC770 CPU */ #define NR_IRQS 128 /* allow some CPU external IRQ handling */ /* Platform Independent IRQs */ diff --git a/arch/arc/kernel/intc-arcv2.c b/arch/arc/kernel/intc-arcv2.c index 6ba2a84ab709..5c5769dd8f5d 100644 --- a/arch/arc/kernel/intc-arcv2.c +++ b/arch/arc/kernel/intc-arcv2.c @@ -14,6 +14,8 @@ #include #include +#define NR_CPU_IRQS 32 /* number of irq lines coming in */ + /* * Early Hardware specific Interrupt setup * -Called very early (start_kernel -> setup_arch -> setup_processor) diff --git a/arch/arc/kernel/intc-compact.c b/arch/arc/kernel/intc-compact.c index 8c1fd5c00782..7e608c6b0a01 100644 --- a/arch/arc/kernel/intc-compact.c +++ b/arch/arc/kernel/intc-compact.c @@ -14,6 +14,7 @@ #include #include +#define NR_CPU_IRQS 32 /* number of irq lines coming in */ #define TIMER0_IRQ 3 /* Fixed by ISA */ /*