Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: BCM63XX: always register bmips smp ops

Use the return value for guarding further SMP setup.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6249/

authored by

Jonas Gorski and committed by
Ralf Baechle
10102692 04fa8bf7

+2 -4
+2 -4
arch/mips/bcm63xx/prom.c
··· 59 59 /* do low level board init */ 60 60 board_prom_init(); 61 61 62 - if (IS_ENABLED(CONFIG_CPU_BMIPS4350) && IS_ENABLED(CONFIG_SMP)) { 63 - /* set up SMP */ 64 - register_bmips_smp_ops(); 65 - 62 + /* set up SMP */ 63 + if (!register_bmips_smp_ops()) { 66 64 /* 67 65 * BCM6328 might not have its second CPU enabled, while BCM3368 68 66 * and BCM6358 need special handling for their shared TLB, so