Skip to content

topology/sysfs, cpufreq/intel_pstate: Populate cpu_capacity

Ricardo Neri linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2arch_topology: Relocate cpu_scale to topology.[h|c]drivers/base/arch_topology.c drivers/base/topology.c include/linux/arch_topology.h +1 more+61 -602 replies
2/2cpufreq: intel_pstate: Populate the cpu_capacity sysfs entriesdrivers/cpufreq/intel_pstate.c+2 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchChristian Loehle
1/2T-b
2/2

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

Read the v1 thread

Cover letter [PATCH 0/2] topology/sysfs, cpufreq/intel_pstate: Populate cpu_capacity

Hi,

Capacity-aware scheduling is now supported on Intel hybrid processors. It makes sense now to populate the interface /sys/devices/system/cpu/cpuN/ cpu_capacity. User space entities can use this information to implement policy such as utilization clamps.

This interface currently lives in arch_topology.c. Rather than implementing the interface again for x86, we can move it to a common location in topology.c from which other architectures can also benefit and populate using their own mechanisms.

I tested this patchset on Intel Alder Lake and DragonBoard 845c. The interfaces are populated correctly.

I'd appreciate any feedback!

Thanks and BR,
Ricardo
Ricardo Neri (2):
arch_topology: Relocate cpu_scale to topology.[h|c]
cpufreq: intel_pstate: Populate the cpu_capacity sysfs entries

 drivers/base/arch_topology.c   | 52 ----------------------------------
 drivers/base/topology.c        | 52 ++++++++++++++++++++++++++++++++++
 drivers/cpufreq/intel_pstate.c |  2 ++
 include/linux/arch_topology.h  |  8 ------
 include/linux/topology.h       |  9 ++++++
 5 files changed, 63 insertions(+), 60 deletions(-)
Signature · 1 line
2.43.0