[PATCH v2 0/3] topology/sysfs: only export used sysfs attributes

From: Heiko Carstens
Date: Mon Nov 29 2021 - 08:05:39 EST


v2:
As requested by Greg KH: avoid negative logic and use uppercase defines.

v1:
Create die and cluster cpu topology sysfs attributes only if an
architecture makes uses of it, instead of creating them always for all
architectures with bogus default values.
Also change the book and drawer cpu topology macros so they match all
all other topology macros.

v1: https://lore.kernel.org/lkml/20211128212221.1069726-1-hca@xxxxxxxxxxxxx/

Heiko Carstens (3):
topology/sysfs: export die attributes only if an architectures has support
topology/sysfs: export cluster attributes only if an architectures has support
topology/sysfs: rework book and drawer topology ifdefery

Documentation/admin-guide/cputopology.rst | 33 +++++++++++------------
drivers/base/topology.c | 28 ++++++++++++++-----
include/linux/topology.h | 25 +++++++++++++++++
3 files changed, 62 insertions(+), 24 deletions(-)

--
2.32.0