Skip to content

Commit 4bf2a62

Browse files
abajktsbogend
authored andcommitted
MIPS: lantiq: register smp_ops on non-smp platforms
Lantiq uses a common kernel config for devices with 24Kc and 34Kc cores. The changes made previously to add support for interrupts on all cores work on 24Kc platforms with SMP disabled and 34Kc platforms with SMP enabled. This patch fixes boot issues on Danube (single core 24Kc) with SMP enabled. Fixes: 730320f ("MIPS: lantiq: enable all hardware interrupts on second VPE") Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent ce7b1b9 commit 4bf2a62

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

arch/mips/lantiq/prom.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ void __init prom_init(void)
108108
prom_init_cmdline();
109109

110110
#if defined(CONFIG_MIPS_MT_SMP)
111-
if (cpu_has_mipsmt) {
112-
lantiq_smp_ops = vsmp_smp_ops;
111+
lantiq_smp_ops = vsmp_smp_ops;
112+
if (cpu_has_mipsmt)
113113
lantiq_smp_ops.init_secondary = lantiq_init_secondary;
114-
register_smp_ops(&lantiq_smp_ops);
115-
}
114+
register_smp_ops(&lantiq_smp_ops);
116115
#endif
117116
}

0 commit comments

Comments
 (0)