]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: BMIPS: fix slave CPU booting when physical CPU is not 0
authorFlorian Fainelli <florian@openwrt.org>
Wed, 24 Jul 2013 16:12:11 +0000 (17:12 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 30 Jul 2013 16:54:29 +0000 (18:54 +0200)
commit15cb4f1e89aed5920e709cdc544bb0e987ceed19
tree07662c3a1f58bd8355a4f7d3da23c2962f15be07
parent7244fe84e971e5cd27be6e6976416be453f63092
MIPS: BMIPS: fix slave CPU booting when physical CPU is not 0

The current BMIPS SMP code assumes that the slave CPU is physical and
logical CPU 1, but on some systems such as BCM3368, the slave CPU is
physical CPU0. Fix the code to read the physical CPU (thread ID) we are
running this code on, and adjust the relocation vector address based on
it. This allows bringing up the second CPU on BCM3368 for instance.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: cernekee@gmail.com
Cc: jogo@openwrt.org
Cc: blogic@openwrt.org
Patchwork: https://patchwork.linux-mips.org/patch/5621/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/bmips_vec.S
arch/mips/kernel/smp-bmips.c