]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: BMIPS: Fix thinko to release slave TP from reset
authorFlorian Fainelli <florian@openwrt.org>
Wed, 17 Jul 2013 17:56:31 +0000 (17:56 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 19 Jul 2013 08:09:59 +0000 (10:09 +0200)
commit6e95f6d9e8b2437f47c5e54d21f1c1d5e3619467
treec447aaf4ef6bd8032b51a72af7346219b8b1dc9c
parenteb1a955c756e8221acdff4a5884b1f64a72962e7
MIPS: BMIPS: Fix thinko to release slave TP from reset

Commit 74fc63c7 ["MIPS: BMIPS: support booting from physical CPU other
than 0"] introduced a thinko which will prevents slave CPUs from being
released from reset on systems where we boot from TP0. The problem is
that we are checking whether the slave CPU logical CPU map is 0, which
is never true for systems booting from TP0, so we do not release the
slave TP from reset and we are just stuck. Fix this by properly checking
that the CPU we intend to boot really is the physical slave CPU (logical
and physical value being 1).

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