Skip to content

Commit 0dc17be

Browse files
anholtMarc Zyngier
authored andcommitted
irqchip/bcm2836: Drop smp_set_ops on arm64 builds
For arm64, the bootloader will instead be implementing the spin-table enable method. Signed-off-by: Eric Anholt <[email protected]> Acked-by: Stephen Warren <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
1 parent d649046 commit 0dc17be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/irqchip/irq-bcm2836.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ static struct notifier_block bcm2836_arm_irqchip_cpu_notifier = {
223223
.priority = 100,
224224
};
225225

226+
#ifdef CONFIG_ARM
226227
int __init bcm2836_smp_boot_secondary(unsigned int cpu,
227228
struct task_struct *idle)
228229
{
@@ -238,7 +239,7 @@ int __init bcm2836_smp_boot_secondary(unsigned int cpu,
238239
static const struct smp_operations bcm2836_smp_ops __initconst = {
239240
.smp_boot_secondary = bcm2836_smp_boot_secondary,
240241
};
241-
242+
#endif
242243
#endif
243244

244245
static const struct irq_domain_ops bcm2836_arm_irqchip_intc_ops = {
@@ -256,8 +257,11 @@ bcm2836_arm_irqchip_smp_init(void)
256257
register_cpu_notifier(&bcm2836_arm_irqchip_cpu_notifier);
257258

258259
set_smp_cross_call(bcm2836_arm_irqchip_send_ipi);
260+
261+
#ifdef CONFIG_ARM
259262
smp_set_ops(&bcm2836_smp_ops);
260263
#endif
264+
#endif
261265
}
262266

263267
/*

0 commit comments

Comments
 (0)