Skip to content

sched, arch_topology: Thermal pressure configuration cleanup

Valentin Schneider linux-arm-kernel linux-pm lkml 2 versions – Applied

Status from this message: The following commit has been merged into the sched/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 11 repliesApplied
  2. v13 patches 8 repliesSuperseded

Changes in v2 from the cover letter

--------

o Remove cpufreq_cooling.c weak function; use #define stub in sched/topology.h (Vincent)
o Hinge arm SCHED_THERMAL_PRESSURE selection on ARM_CPU_TOPOLOGY

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3arch_topology, sched/core: Cleanup thermal pressure definitionarch/arm/include/asm/topology.h arch/arm64/include/asm/topology.h drivers/base/arch_topology.c +3 more+24 -151 reply
2/3sched: Cleanup SCHED_THERMAL_PRESSURE kconfig entryinit/Kconfig+14 -16 replies
3/3arm, arm64: Select CONFIG_SCHED_THERMAL_PRESSUREarch/arm/Kconfig arch/arm64/Kconfig+2 -02 replies

Reviews trailers per patch

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

PatchCatalin MarinasVincent GuittotThara Gopinath
SeriesR-b
1/3R-b
2/3
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] sched, arch_topology: Thermal pressure configuration cleanup

Hi folks,

This stems from this thread [1] on the list. TL;DR: the thermal pressure config has no helpful documentation, and figuring out if the right dependencies are in place is not easy for a regular user.

The current landscape also paints an odd picture: arch_set_thermal_pressure() is hardcoded in sched/core.c, and is *not* architecture-definable, while arch_get_thermal_pressure() is. Patch 1 is tackling this, the rest is Kconfig stuff.

Cheers,
Valentin

[1]: https://lkml.kernel.org/r/[email protected]

Revisions
=========

v1 -> v2
--------

o Remove cpufreq_cooling.c weak function; use #define stub in sched/topology.h (Vincent)
o Hinge arm SCHED_THERMAL_PRESSURE selection on ARM_CPU_TOPOLOGY

Valentin Schneider (3):
arch_topology, sched/core: Cleanup thermal pressure definition
sched: Cleanup SCHED_THERMAL_PRESSURE kconfig entry arm, arm64: Select CONFIG_SCHED_THERMAL_PRESSURE

 arch/arm/Kconfig                  |  1 +
 arch/arm/include/asm/topology.h   |  3 ++-
 arch/arm64/Kconfig                |  1 +
 arch/arm64/include/asm/topology.h |  3 ++-
 drivers/base/arch_topology.c      | 11 +++++++++++
 include/linux/arch_topology.h     |  4 ++--
 include/linux/sched/topology.h    |  7 +++++++
 init/Kconfig                      | 15 ++++++++++++++-
 kernel/sched/core.c               | 11 -----------
 9 files changed, 40 insertions(+), 16 deletions(-)

--
2.27.0