Skip to content

Commit 92f2750

Browse files
committed
drivers: irq-bcm283x: swizzle interrupts on ARMv7 too
BCM2836 with Cortex-A7 cores has almost the same ARM_LOCAL interrupt routing logic as BCM2837, so relax the compile guard to CONFIG_SMP not CONFIG_ARM64. Signed-off-by: Jonathan Bell <[email protected]>
1 parent 6d97c1c commit 92f2750

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

drivers/irqchip/irq-bcm2835.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ static void armctrl_unmask_irq(struct irq_data *d)
153153
}
154154
}
155155

156-
#ifdef CONFIG_ARM64
156+
#if defined(CONFIG_SMP)
157+
void bcm2836_arm_irqchip_spin_gpu_irq(void);
157158

158159
static void armctrl_ack_irq(struct irq_data *d)
159160
{
@@ -168,7 +169,7 @@ static struct irq_chip armctrl_chip = {
168169
.irq_unmask = armctrl_unmask_irq,
169170
.flags = IRQCHIP_MASK_ON_SUSPEND |
170171
IRQCHIP_SKIP_SET_WAKE,
171-
#ifdef CONFIG_ARM64
172+
#if defined(CONFIG_SMP)
172173
.irq_ack = armctrl_ack_irq
173174
#endif
174175
};

drivers/irqchip/irq-bcm2836.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static void bcm2836_arm_irqchip_unmask_gpu_irq(struct irq_data *d)
8787
{
8888
}
8989

90-
#ifdef CONFIG_ARM64
90+
#if defined(CONFIG_SMP)
9191

9292
void bcm2836_arm_irqchip_spin_gpu_irq(void)
9393
{

0 commit comments

Comments
 (0)