summaryrefslogtreecommitdiff
path: root/arch/arc/include/asm/irq.h
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2015-10-12 12:28:54 +0300
committerVineet Gupta <vgupta@synopsys.com>2015-10-28 13:43:39 +0300
commite0868e6f673d0d2db6a3c3798605e6efb756e61e (patch)
tree34ecf6334a5a58f9a337436d70c2f7fc01f39ca4 /arch/arc/include/asm/irq.h
parent3971cdc202f638f252e39316d42492ace04cc1b1 (diff)
downloadlinux-e0868e6f673d0d2db6a3c3798605e6efb756e61e.tar.xz
ARC: smp: irqchip: handle IPI as percpu irq like timer
The reason this was not done so far was lack of genuine IPI_IRQ for ARC700, as we don't have a SMP version of core yet (which might change soon thx to EZChip). Nevertheles to increase the build coverage, we need to allow CONFIG_SMP for ARC700 and still be able to run it on a UP platform (nsim or AXS101) with a UP Device Tree (SMP-on-UP) The build itself requires some define for IPI_IRQ and even a dummy value is fine since that code won't run anyways. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include/asm/irq.h')
-rw-r--r--arch/arc/include/asm/irq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arc/include/asm/irq.h b/arch/arc/include/asm/irq.h
index bc5103637326..4fd7d62a6e30 100644
--- a/arch/arc/include/asm/irq.h
+++ b/arch/arc/include/asm/irq.h
@@ -16,6 +16,7 @@
#ifdef CONFIG_ISA_ARCOMPACT
#define TIMER0_IRQ 3
#define TIMER1_IRQ 4
+#define IPI_IRQ (NR_CPU_IRQS-1) /* dummy to enable SMP build for up hardware */
#else
#define TIMER0_IRQ 16
#define TIMER1_IRQ 17