powerpc: Use ibm, chip-id property to compute cpu_core_mask if available
authorPaul Mackerras <paulus@samba.org>
Mon, 12 Aug 2013 06:29:33 +0000 (16:29 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 05:00:22 +0000 (15:00 +1000)
commit256f2d4b463d3030ebc8d2b54f427543814a2bdc
treebbf8fb26d8cd8aa154b879eadd503bd5b5a1ffaf
parenta8a5356cd511db229aeaad636dc0f83d8c4d0a15
powerpc: Use ibm, chip-id property to compute cpu_core_mask if available

Some systems have an ibm,chip-id property in the cpu nodes in the
device tree.  On these systems, we now use that to compute the
cpu_core_mask (i.e. the set of core siblings) rather than looking
at cache properties.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Tested-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/smp.c