diff options
authorFlorian Fainelli <>2013-07-17 17:56:31 +0000
committerRalf Baechle <>2013-07-19 10:09:59 +0200
commit976f39b139cdd06a88a5aadd8202b0c30cac9cda (patch)
parenta47bde9b7cbeb87dbb1c5554e90b770d3cc06c5c (diff)
MIPS: BMIPS: Fix thinko to release slave TP from reset
Commit 4df715aa ["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 <> Cc: Cc: Cc: Cc: Cc: Florian Fainelli <> Patchwork: Signed-off-by: Ralf Baechle <>
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c
index aea6c0885838..67445374014f 100644
--- a/arch/mips/kernel/smp-bmips.c
+++ b/arch/mips/kernel/smp-bmips.c
@@ -173,7 +173,7 @@ static void bmips_boot_secondary(int cpu, struct task_struct *idle)
else {
#if defined(CONFIG_CPU_BMIPS4350) || defined(CONFIG_CPU_BMIPS4380)
/* Reset slave TP1 if booting from TP0 */
- if (cpu_logical_map(cpu) == 0)
+ if (cpu_logical_map(cpu) == 1)
#elif defined(CONFIG_CPU_BMIPS5000)
if (cpu & 0x01)