powerpc: Make chip-id information available to userspace
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>
Mon, 12 Aug 2013 12:05:57 +0000 (17:35 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 05:33:17 +0000 (15:33 +1000)
commit15863ff3b8dae4cacd831ce10aa34992e9ababb0
treeb061c136ecd6204ce9084f4e4d4232b5404e8b39
parent202127031a14f244c15ae4434993d36bd10a439c
powerpc: Make chip-id information available to userspace

So far "/sys/devices/system/cpu/cpuX/topology/physical_package_id"
was always default (-1) on ppc64 architecture.

Now, some systems have an ibm,chip-id property in the cpu nodes in
the device tree. On these systems, we now use this information to
display physical_package_id.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/smp.h
arch/powerpc/include/asm/topology.h
arch/powerpc/kernel/smp.c