Re: [PATCH 09/19] sched/fair: Count tasks prefering each LLC in a sched group

From: Tim Chen

Date: Wed Oct 15 2025 - 16:43:22 EST


On Wed, 2025-10-15 at 14:25 +0200, Peter Zijlstra wrote:
> On Sat, Oct 11, 2025 at 11:24:46AM -0700, Tim Chen wrote:
>
> > +#ifdef CONFIG_SCHED_CACHE
> > + if (sched_cache_enabled()) {
> > + int j;
> > +
> > + for (j = 0; j < max_llcs; ++j)
> > + sgs->nr_pref_llc[j] += rq->nr_pref_llc[j];
>
> We live in the year 2025 and have embraced c99, please write as:
>
> for (int j = 0; j < max_llcs; j++)

Will do.

>
> > + }
> > +#endif