From: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
To: Sudeep Holla <sudeep.holla@arm.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Danilo Krummrich <dakr@kernel.org>,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
Len Brown <len.brown@intel.com>
Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
Ricardo Neri <ricardo.neri@intel.com>,
Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Subject: [PATCH 0/2] topology/sysfs, cpufreq/intel_pstate: Populate cpu_capacity
Date: Fri, 18 Apr 2025 19:55:02 -0700 [thread overview]
Message-ID: <20250419025504.9760-1-ricardo.neri-calderon@linux.intel.com> (raw)
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
next reply other threads:[~2025-04-19 2:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-19 2:55 Ricardo Neri [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250419025504.9760-1-ricardo.neri-calderon@linux.intel.com \
--to=ricardo.neri-calderon@linux.intel.com \
--cc=dakr@kernel.org \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=ricardo.neri@intel.com \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=sudeep.holla@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®