瀏覽代碼

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 <vgupta@synopsys.com>
Vineet Gupta 8 年之前
父節點
當前提交
fe7b109946
共有 3 個文件被更改,包括 3 次插入1 次删除
  1. 0 1
      arch/arc/include/asm/irq.h
  2. 2 0
      arch/arc/kernel/intc-arcv2.c
  3. 1 0
      arch/arc/kernel/intc-compact.c

+ 0 - 1
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 */

+ 2 - 0
arch/arc/kernel/intc-arcv2.c

@@ -14,6 +14,8 @@
 #include <linux/irqchip.h>
 #include <asm/irq.h>
 
+#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)

+ 1 - 0
arch/arc/kernel/intc-compact.c

@@ -14,6 +14,7 @@
 #include <linux/irqchip.h>
 #include <asm/irq.h>
 
+#define NR_CPU_IRQS	32	/* number of irq lines coming in */
 #define TIMER0_IRQ	3	/* Fixed by ISA */
 
 /*