bcm63xx: make smp kernels boot on older SoCs
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-3.9 / 107-MIPS-BCM63XX-always-register-bmips-smp-ops.patch
1 From c489eace9492d1b8bedb314bdef169e719161bff Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Fri, 28 Jun 2013 00:08:16 +0200
4 Subject: [PATCH 08/10] MIPS: BCM63XX: always register bmips smp ops
5
6 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
7 ---
8 arch/mips/bcm63xx/prom.c | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
10
11 --- a/arch/mips/bcm63xx/prom.c
12 +++ b/arch/mips/bcm63xx/prom.c
13 @@ -59,10 +59,10 @@ void __init prom_init(void)
14 /* do low level board init */
15 board_prom_init();
16
17 - if (IS_ENABLED(CONFIG_CPU_BMIPS4350) && IS_ENABLED(CONFIG_SMP)) {
18 - /* set up SMP */
19 - register_smp_ops(&bmips_smp_ops);
20 + /* set up SMP */
21 + register_bmips_smp_ops();
22
23 + if (IS_ENABLED(CONFIG_CPU_BMIPS4350) && IS_ENABLED(CONFIG_SMP)) {
24 /*
25 * BCM6328 might not have its second CPU enabled, while BCM6358
26 * needs special handling for its shared TLB, so disable SMP