]> git.baikalelectronics.ru Git - kernel.git/commit
topology: Create package_cpus sysfs attribute
authorLen Brown <len.brown@intel.com>
Mon, 13 May 2019 17:58:55 +0000 (13:58 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 23 May 2019 08:08:34 +0000 (10:08 +0200)
commitc964bfc5f223dfaf46180b0f4a0ac6dc667ad12a
tree2945751e5a2c5b472ce3caaaad132fa92d2d5a99
parent25e76d78da40c9bf21ace0cb341d87b80dfca1ed
topology: Create package_cpus sysfs attribute

The existing sysfs cpu/topology/core_siblings (and core_siblings_list)
attributes are documented, implemented, and used by programs to represent
set of logical CPUs sharing the same package.

This makes sense if the next topology level above a core is always a
package.  But on systems where there is a die topology level between a core
and a package, the name and its definition become inconsistent.

So without changing its function, add a name for this map that describes
what it actually is -- package CPUs -- the set of CPUs that share the same
package.

This new name will be immune to changes in topology, since it describes
threads at the current level, not siblings at a contained level.

Suggested-by: Brice Goglin <Brice.Goglin@inria.fr>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/d9d3228b82fb5665e6f93a0ccd033fe022558521.1557769318.git.len.brown@intel.com
Documentation/cputopology.txt
drivers/base/topology.c