aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2019-02-26 01:20:00 -0500
committerIngo Molnar <mingo@kernel.org>2019-04-19 04:56:04 -0400
commit3a1c779fb8f71e772e2145e68c262936ada815ed (patch)
tree1efb530b7f09ffb3427c6cd042fdc4384e3030c2
parentef7c7727f2c18338fa77b339f10ab923a4c0b0f4 (diff)
topology: Simplify cputopology.txt formatting and wording
Syntax only, no functional or semantic change. Signed-off-by: Len Brown <len.brown@intel.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Cc: linux-doc@vger.kernel.org Link: http://lkml.kernel.org/r/1ca56f8ea922a67f0017bd645912ea02a65a85ec.1551160674.git.len.brown@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--Documentation/cputopology.txt46
1 files changed, 23 insertions, 23 deletions
diff --git a/Documentation/cputopology.txt b/Documentation/cputopology.txt
index c6e7e9196a8b..cb61277e2308 100644
--- a/Documentation/cputopology.txt
+++ b/Documentation/cputopology.txt
@@ -3,79 +3,79 @@ How CPU topology info is exported via sysfs
3=========================================== 3===========================================
4 4
5Export CPU topology info via sysfs. Items (attributes) are similar 5Export CPU topology info via sysfs. Items (attributes) are similar
6to /proc/cpuinfo output of some architectures: 6to /proc/cpuinfo output of some architectures. They reside in
7/sys/devices/system/cpu/cpuX/topology/:
7 8
81) /sys/devices/system/cpu/cpuX/topology/physical_package_id: 9physical_package_id:
9 10
10 physical package id of cpuX. Typically corresponds to a physical 11 physical package id of cpuX. Typically corresponds to a physical
11 socket number, but the actual value is architecture and platform 12 socket number, but the actual value is architecture and platform
12 dependent. 13 dependent.
13 14
142) /sys/devices/system/cpu/cpuX/topology/core_id: 15core_id:
15 16
16 the CPU core ID of cpuX. Typically it is the hardware platform's 17 the CPU core ID of cpuX. Typically it is the hardware platform's
17 identifier (rather than the kernel's). The actual value is 18 identifier (rather than the kernel's). The actual value is
18 architecture and platform dependent. 19 architecture and platform dependent.
19 20
203) /sys/devices/system/cpu/cpuX/topology/book_id: 21book_id:
21 22
22 the book ID of cpuX. Typically it is the hardware platform's 23 the book ID of cpuX. Typically it is the hardware platform's
23 identifier (rather than the kernel's). The actual value is 24 identifier (rather than the kernel's). The actual value is
24 architecture and platform dependent. 25 architecture and platform dependent.
25 26
264) /sys/devices/system/cpu/cpuX/topology/drawer_id: 27drawer_id:
27 28
28 the drawer ID of cpuX. Typically it is the hardware platform's 29 the drawer ID of cpuX. Typically it is the hardware platform's
29 identifier (rather than the kernel's). The actual value is 30 identifier (rather than the kernel's). The actual value is
30 architecture and platform dependent. 31 architecture and platform dependent.
31 32
325) /sys/devices/system/cpu/cpuX/topology/thread_siblings: 33thread_siblings:
33 34
34 internal kernel map of cpuX's hardware threads within the same 35 internal kernel map of cpuX's hardware threads within the same
35 core as cpuX. 36 core as cpuX.
36 37
376) /sys/devices/system/cpu/cpuX/topology/thread_siblings_list: 38thread_siblings_list:
38 39
39 human-readable list of cpuX's hardware threads within the same 40 human-readable list of cpuX's hardware threads within the same
40 core as cpuX. 41 core as cpuX.
41 42
427) /sys/devices/system/cpu/cpuX/topology/core_siblings: 43core_siblings:
43 44
44 internal kernel map of cpuX's hardware threads within the same 45 internal kernel map of cpuX's hardware threads within the same
45 physical_package_id. 46 physical_package_id.
46 47
478) /sys/devices/system/cpu/cpuX/topology/core_siblings_list: 48core_siblings_list:
48 49
49 human-readable list of cpuX's hardware threads within the same 50 human-readable list of cpuX's hardware threads within the same
50 physical_package_id. 51 physical_package_id.
51 52
529) /sys/devices/system/cpu/cpuX/topology/book_siblings: 53book_siblings:
53 54
54 internal kernel map of cpuX's hardware threads within the same 55 internal kernel map of cpuX's hardware threads within the same
55 book_id. 56 book_id.
56 57
5710) /sys/devices/system/cpu/cpuX/topology/book_siblings_list: 58book_siblings_list:
58 59
59 human-readable list of cpuX's hardware threads within the same 60 human-readable list of cpuX's hardware threads within the same
60 book_id. 61 book_id.
61 62
6211) /sys/devices/system/cpu/cpuX/topology/drawer_siblings: 63drawer_siblings:
63 64
64 internal kernel map of cpuX's hardware threads within the same 65 internal kernel map of cpuX's hardware threads within the same
65 drawer_id. 66 drawer_id.
66 67
6712) /sys/devices/system/cpu/cpuX/topology/drawer_siblings_list: 68drawer_siblings_list:
68 69
69 human-readable list of cpuX's hardware threads within the same 70 human-readable list of cpuX's hardware threads within the same
70 drawer_id. 71 drawer_id.
71 72
72To implement it in an architecture-neutral way, a new source file, 73Architecture-neutral, drivers/base/topology.c, exports these attributes.
73drivers/base/topology.c, is to export the 6 to 12 attributes. The book 74However, the book and drawer related sysfs files will only be created if
74and drawer related sysfs files will only be created if CONFIG_SCHED_BOOK 75CONFIG_SCHED_BOOK and CONFIG_SCHED_DRAWER are selected, respectively.
75and CONFIG_SCHED_DRAWER are selected.
76 76
77CONFIG_SCHED_BOOK and CONFIG_DRAWER are currently only used on s390, where 77CONFIG_SCHED_BOOK and CONFIG_SCHED_DRAWER are currently only used on s390,
78they reflect the cpu and cache hierarchy. 78where they reflect the cpu and cache hierarchy.
79 79
80For an architecture to support this feature, it must define some of 80For an architecture to support this feature, it must define some of
81these macros in include/asm-XXX/topology.h:: 81these macros in include/asm-XXX/topology.h::
@@ -98,10 +98,10 @@ To be consistent on all architectures, include/linux/topology.h
98provides default definitions for any of the above macros that are 98provides default definitions for any of the above macros that are
99not defined by include/asm-XXX/topology.h: 99not defined by include/asm-XXX/topology.h:
100 100
1011) physical_package_id: -1 1011) topology_physical_package_id: -1
1022) core_id: 0 1022) topology_core_id: 0
1033) sibling_cpumask: just the given CPU 1033) topology_sibling_cpumask: just the given CPU
1044) core_cpumask: just the given CPU 1044) topology_core_cpumask: just the given CPU
105 105
106For architectures that don't support books (CONFIG_SCHED_BOOK) there are no 106For architectures that don't support books (CONFIG_SCHED_BOOK) there are no
107default definitions for topology_book_id() and topology_book_cpumask(). 107default definitions for topology_book_id() and topology_book_cpumask().