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

From: Peter Zijlstra

Date: Wed Oct 15 2025 - 08:26:01 EST


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

> + }
> +#endif