Re: [PATCH v2 2/8] sched/topology: Wrappers for sched_domains_mutex

From: Juri Lelli
Date: Fri Mar 07 2025 - 03:53:44 EST


Hi,

Thanks for the overall review!

On 07/03/25 12:04, Shrikanth Hegde wrote:
> Hi Juri.
>
> On 3/6/25 19:40, Juri Lelli wrote:
> > Create wrappers for sched_domains_mutex so that it can transparently be
> > used on both CONFIG_SMP and !CONFIG_SMP, as some function will need to
> > do.

...

> Maybe sched_domains_mutex can be static since its only used in topology.c ?

We have a lockdep_assert in cpuset.c, don't we? We can create another
wrapper for that, but I am not sure it is going to be cleaner.

Thanks,
Juri