Skip to content

Commit 9ae6f3a

Browse files
P33Mpopcornmix
authored andcommitted
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 f476b52 commit 9ae6f3a

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
@@ -89,7 +89,7 @@ static void bcm2836_arm_irqchip_unmask_gpu_irq(struct irq_data *d)
8989
{
9090
}
9191

92-
#ifdef CONFIG_ARM64
92+
#if defined(CONFIG_SMP)
9393

9494
void bcm2836_arm_irqchip_spin_gpu_irq(void)
9595
{

0 commit comments

Comments
 (0)