]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit531415e71636ad13c250476797a6282a1d499234
treeb061c136ecd6204ce9084f4e4d4232b5404e8b39
parent507b8bb82fa429cfb2166e6ea2f8cf3cc37dcfc0
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