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 <[email protected]> --- 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
