Re: [PATCH v5] sched/fair: Use sched_domain_span() for topology_span_sane()

From: K Prateek Nayak
Date: Mon Aug 25 2025 - 08:17:07 EST




On 8/25/2025 4:46 PM, Peter Zijlstra wrote:
> On Mon, Aug 25, 2025 at 04:17:52PM +0530, K Prateek Nayak wrote:
>
>> The above helpers may need guarding behind CONFIG_SCHED_{SMT,CLUSTER,MC}
>> if I'm not mistaken. Possibility for some unification and cleanup with:
>>
>
>> Thoughts?
>
> I hate we need __maybe_unused on static inline functions, but yeah, that
> might be nicer.

I couldn't find a better solution unfortunately :(

>
> Can you fold the lot and stick that nice Changelog on? Then I'll get it
> into sched/core and we can forget all about this stuff.

Okey dokey! Posted the changes as v6 at:
https://lore.kernel.org/lkml/20250825120244.11093-1-kprateek.nayak@xxxxxxx/

--
Thanks and Regards,
Prateek