MIPS: Decode core number for R2 CPUs.
authorDavid Daney <ddaney@caviumnetworks.com>
Mon, 26 Jul 2010 21:29:37 +0000 (14:29 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 5 Aug 2010 12:26:26 +0000 (13:26 +0100)
commit0c2f4551df3880083e4733b5d928d2758b71162c
tree2eec2945e305d8938fff39194d949493379c77a1
parentfa90c87297a1bebd8356e41d71518b37ada56583
MIPS: Decode core number for R2 CPUs.

The struct cpuinfo_mips.core field should be populated with the
physical core number.  For R2 CPUs, this is carried in the low 10 bits
of Ebase.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1505/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cpu-probe.c