Skip to content

topology/sysfs: only export used sysfs attributes

Heiko Carstens lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3topology/sysfs: export die attributes only if an architectures has supportDocumentation/admin-guide/cputopology.rst drivers/base/topology.c include/linux/topology.h+15 -00 replies
2/3topology/sysfs: export cluster attributes only if an architectures has supportDocumentation/admin-guide/cputopology.rst drivers/base/topology.c include/linux/topology.h+13 -20 replies
3/3topology/sysfs: rework book and drawer topology ifdeferyDocumentation/admin-guide/cputopology.rst drivers/base/topology.c include/linux/topology.h+39 -270 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter Zijlstra (Intel)
SeriesA-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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/[email protected]/

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(-)
Signature · 1 line
2.32.0