topology/sysfs: Provide book id and siblings attributes
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 31 Aug 2010 08:28:17 +0000 (10:28 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 9 Sep 2010 18:41:25 +0000 (20:41 +0200)
Create attributes:

 /sys/devices/system/cpu/cpuX/topology/book_id
 /sys/devices/system/cpu/cpuX/topology/book_siblings

which show the book id and the book siblings of a cpu.

Unlike the attributes for SMT and MC these attributes are only present if
CONFIG_SCHED_BOOK is set. There is no reason to pollute sysfs for every
architecture with unused attributes.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20100831082844.435648457@de.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found