]> git.karo-electronics.de Git - linux-beck.git/commit
topology/sysfs: provide drawer id and siblings attributes
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 21 May 2016 09:10:13 +0000 (11:10 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 13 Jun 2016 13:58:27 +0000 (15:58 +0200)
commita62247e1f5c13b926f535bb64ecbd7f9fdef7b21
tree4ef1e9a1ec7b54531246af5007781f48e0e1a779
parent0599eead5833d9dd0970b59fed3844441b44fe0c
topology/sysfs: provide drawer id and siblings attributes

The s390 cpu topology gained another hierarchy level. The top level is
now called drawer and contains several books. A book used to be the
top level.

In order to expose the cpu topology to user space allow to create new
sysfs attributes dependent on CONFIG_SCHED_DRAWER which an
architecture may define and select.

These additional attributes will be available:

/sys/devices/system/cpu/cpuX/topology/drawer_id
/sys/devices/system/cpu/cpuX/topology/drawer_siblings
/sys/devices/system/cpu/cpuX/topology/drawer_siblings_list

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Documentation/cputopology.txt
drivers/base/topology.c