From: Shrikanth Hegde <sshegde@linux.ibm.com>
To: maddy@linux.ibm.com, linuxppc-dev@lists.ozlabs.org,
linux-kernel@vger.kernel.org, driver-core@lists.linux.dev
Cc: sshegde@linux.ibm.com, christophe.leroy@csgroup.eu,
ritesh.list@gmail.com, tim.c.chen@linux.intel.com,
yu.c.chen@intel.com, gregkh@linuxfoundation.org,
rafael@kernel.org, dakr@kernel.org, johan@kernel.org,
sudeep.holla@kernel.org, peterz@infradead.org, tglx@kernel.org,
kprateek.nayak@amd.com, srikar@linux.ibm.com
Subject: [PATCH v2 6/6] sched/topology: Remove stale comment around llc_bytes on powerpc
Date: Fri, 27 Nov 2026 20:52:42 +0530 [thread overview]
Message-ID: <20261127152242.306333-7-sshegde@linux.ibm.com> (raw)
In-Reply-To: <20261127152242.306333-1-sshegde@linux.ibm.com>
PowerPC now populates generic cacheinfo, allowing
get_effective_llc_bytes() to obtain the LLC size.
Remove the comment stating that get_effective_llc_bytes() always
returns zero on PowerPC.
Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
---
kernel/sched/topology.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
index 528897a58aff..30f2ce374e51 100644
--- a/kernel/sched/topology.c
+++ b/kernel/sched/topology.c
@@ -999,15 +999,8 @@ void sched_cache_active_set(void)
/*
* Update the bottom sched_domain's llc_bytes for @cpus sharing a physical
- * LLC. Called from cacheinfo_cpu_online() or
- * cacheinfo_cpu_pre_down() with cpu hotplug lock held.
- *
- * Note: get_effective_llc_bytes() returns 0 on PowerPC.
- * thus cache aware scheduling is disabled on PowerPC for
- * now. PowerPC does not use the generic cacheinfo framework --
- * it has its own cacheinfo with a separate struct cache hierarchy
- * and does not populates the per-CPU struct cpu_cacheinfo array
- * that get_cpu_cacheinfo_llc() reads.
+ * LLC. Called from cacheinfo_cpu_online(), cacheinfo_cpu_pre_down(),
+ * cacheinfo_rebuild_all(), cacheinfo_teardown_all with cpu hotplug lock held.
*/
void sched_update_llc_bytes(const struct cpumask *cpus)
{
--
2.52.0
prev parent reply other threads:[~2026-11-27 15:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 15:22 [PATCH v2 0/6] cacheinfo, powerpc, sched: Move powerpc to generic cacheinfo Shrikanth Hegde
2026-11-27 15:22 ` [PATCH v2 1/6] cacheinfo: Allow architectures to provide custom cache IDs Shrikanth Hegde
2026-11-27 15:22 ` [PATCH v2 2/6] cacheinfo: Support unified caches described by d-cache properties Shrikanth Hegde
2026-11-27 15:22 ` [PATCH v2 3/6] cacheinfo: Add firmware topology replacement helpers Shrikanth Hegde
2026-11-27 15:22 ` [PATCH v2 4/6] powerpc: Set CPU device OF node before generic cacheinfo setup Shrikanth Hegde
2026-11-27 15:22 ` [PATCH v2 5/6] powerpc/cacheinfo: Move to generic cacheinfo Shrikanth Hegde
2026-11-27 15:22 ` Shrikanth Hegde [this message]
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=20261127152242.306333-7-sshegde@linux.ibm.com \
--to=sshegde@linux.ibm.com \
--cc=christophe.leroy@csgroup.eu \
--cc=dakr@kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=johan@kernel.org \
--cc=kprateek.nayak@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=peterz@infradead.org \
--cc=rafael@kernel.org \
--cc=ritesh.list@gmail.com \
--cc=srikar@linux.ibm.com \
--cc=sudeep.holla@kernel.org \
--cc=tglx@kernel.org \
--cc=tim.c.chen@linux.intel.com \
--cc=yu.c.chen@intel.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