MIPS: CMP: Fix physical core number calculation logic
authorjerin jacob <jerinjacobk@gmail.com>
Thu, 11 Oct 2012 16:48:51 +0000 (22:18 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 18 Oct 2012 09:45:41 +0000 (11:45 +0200)
commit0cc40dac8605b3b6b099b47cdde9500d592e6583
tree322340d7a49068430565199ebeb18055924c7e9a
parenta12265400c18e6e67d444f05fec3a792a2f87c10
MIPS: CMP: Fix physical core number calculation logic

The CPUNum Field in EBase register is 10bit wide, so after 1 bit right
shift, the mask value should be 0x1ff.

Signed-off-by: jerin jacob <jerinjacobk@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4420/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/smp-cmp.c