]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: BMIPS: support booting from physical CPU other than 0
authorFlorian Fainelli <florian@openwrt.org>
Wed, 26 Jun 2013 18:11:56 +0000 (18:11 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 27 Jun 2013 06:33:47 +0000 (08:33 +0200)
commit672d6bea85c7c9c63c086a9423e6d4e5fc286152
tree25a56a002ff157d5b4aea710ac0ece661a5d4a6e
parent034a65cac3fd613d8eede4cfba035f2558190f1c
MIPS: BMIPS: support booting from physical CPU other than 0

BMIPS43xx CPUs have two hardware threads, and on some SoCs such as 3368,
the bootloader has configured the system to boot from TP1 instead of the
more usual TP0. Create the physical to logical CPU mapping to cope with
that, do not remap the software interrupts to be cross CPUs such that we
do not have to do use the logical CPU mapping further down the code, and
finally, reset the slave TP1 only if booted from TP0.

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