Re: [PATCH v3 04/21] sched/cache: Make LLC id continuous
From: Peter Zijlstra
Date: Thu Feb 19 2026 - 10:52:48 EST
On Thu, Feb 19, 2026 at 11:42:58AM +0530, K Prateek Nayak wrote:
> I don't think we need to special case this out since:
>
> for_each_cpu(j, cpu_coregroup_mask(i)) {
> ...
> }
>
> would bail out if no CPU is set (also CPU "i" would definitely be
> set on it since it must be online) and the "if" after the loop will
> see "lid" as "-1" and DTRT.
So tying lid to coregroup_mask, rather than sched_domains might make
sense. It avoids that partitions nonsense.