topology/sysfs: rework book and drawer topology ifdefery
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 29 Nov 2021 13:03:09 +0000 (14:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Dec 2021 14:58:27 +0000 (15:58 +0100)
commitf1045056c726440469d89d23c13734bcd6c0d15b
treef4b9b2b30a94baa1798cde9cb81c8e8d24862889
parente795707703b32fecdd7467afcc33ff1e92416c05
topology/sysfs: rework book and drawer topology ifdefery

Provide default defines for the topology_book_[id|cpumask] and
topology_drawer_[id|cpumask] macros just like for each other topology
level.
This way all topology levels are handled in a similar way. Still the
the book and drawer levels are only used on s390, and also the sysfs
attributes are only created on s390. However other architectures may
opt in if wanted.

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/r/20211129130309.3256168-4-hca@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/admin-guide/cputopology.rst
drivers/base/topology.c
include/linux/topology.h