]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Setup sysfs to mark LDOM sockets, cores and threads correctly.
authorAllen Pais <allen.pais@oracle.com>
Wed, 7 Jan 2015 12:36:22 +0000 (18:06 +0530)
committerAllen Pais <allen.pais@oracle.com>
Wed, 9 Sep 2015 18:42:50 +0000 (00:12 +0530)
commitec4c5a02e1f4f14a3855469296ebc761d2735223
treed2419f946dccfecb6358aa7e573ffe30298e3460
parent474f84bc2bf810f6ce49aaaeb1b3a0c18ded2dc6
sparc64: Setup sysfs to mark LDOM sockets, cores and threads correctly.

The current sparc kernel has no representation for sockets (i.e. a 3rd level
cache shared by cores) though tools like lscpu can pull this from sysfs. This
patch walks the LDOM MD (machine description) cache hierarchy structure and
marks sockets as well as cores and threads such that a representative sysfs is
created by drivers/base/topology.c.

Addresses LDOM part of Oracle Bug 17423360.

Orabug: 17423360

Signed-off-by: Chris Hyser <chris.hyser@oracle.com>
Reviewed-by: Jerry Snitselaar <jerry.snitselaar@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
(cherry picked from commit 83f5da7f075af677aa310a83e90f43a81cb0b5a5)
(cherry picked from commit 761c43f0261e201c0148cdd807bf50b19aa0a297)
arch/sparc/kernel/mdesc.c
arch/sparc/kernel/smp_64.c