]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix SMP core calculations when using MT support.
authorLeonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Wed, 11 Sep 2013 19:17:47 +0000 (14:17 -0500)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 Sep 2013 09:59:51 +0000 (11:59 +0200)
commit4fe6b5941e41f80bece2c8888ae27b42d048c9ac
tree45fd83bde9a24dd549ac05bc20b51bc1b21df769
parent52b14c9bd62ec210c0fe595ab371de9426f465f5
MIPS: Fix SMP core calculations when using MT support.

The TCBIND register is only available if the core has MT support. It
should not be read otherwise. Secondly, the number of TCs (siblings)
are calculated differently depending on if the kernel is configured
as SMVP or SMTC.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5822/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/smp-cmp.c