]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix core number detection for MT cores
authorPaul Burton <paul.burton@imgtec.com>
Thu, 27 Mar 2014 10:57:30 +0000 (10:57 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 31 Mar 2014 16:17:12 +0000 (18:17 +0200)
commit933abc42cd8c5772bbdde4cd69ea2859d4be254b
treeb756df1f38821bb46182fab185ebd2c4f5e0c86c
parent2cb691ef933e2fa22cd1a95e9bc505d907c1886d
MIPS: Fix core number detection for MT cores

In cores which implement the MT ASE, the CPUNum in the EBase register is
a concatenation of the core number & the VPE ID within that core. In
order to retrieve the correct core number CPUNum must be shifted
appropriately to remove the VPE ID bits.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6666/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cpu-probe.c