mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] topology/sysfs, cpufreq/intel_pstate: Populate cpu_capacity
@ 2025-04-19  2:55 Ricardo Neri
  2025-04-19  2:55 ` [PATCH 1/2] arch_topology: Relocate cpu_scale to topology.[h|c] Ricardo Neri
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ricardo Neri @ 2025-04-19  2:55 UTC (permalink / raw)
  To: Sudeep Holla, Rafael J. Wysocki, Danilo Krummrich,
	Srinivas Pandruvada, Len Brown
  Cc: linux-kernel, linux-pm, Ricardo Neri, Ricardo Neri

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(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-05-07 21:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-19  2:55 [PATCH 0/2] topology/sysfs, cpufreq/intel_pstate: Populate cpu_capacity Ricardo Neri
2025-04-19  2:55 ` [PATCH 1/2] arch_topology: Relocate cpu_scale to topology.[h|c] Ricardo Neri
2025-04-25 16:31   ` Christian Loehle
2025-05-07 21:18     ` Ricardo Neri
2025-04-19  2:55 ` [PATCH 2/2] cpufreq: intel_pstate: Populate the cpu_capacity sysfs entries Ricardo Neri
2025-05-07 20:00 ` [PATCH 0/2] topology/sysfs, cpufreq/intel_pstate: Populate cpu_capacity Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®