Re: [PATCH 4/5] sched/deadline: Rebuild root domain accounting after every update
From: Juri Lelli
Date: Wed Mar 05 2025 - 06:20:50 EST
On 04/03/25 10:17, Waiman Long wrote:
> On 3/4/25 3:40 AM, Juri Lelli wrote:
...
> > @@ -996,7 +999,6 @@ partition_and_rebuild_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
> > {
> > sched_domains_mutex_lock();
> > partition_sched_domains_locked(ndoms_new, doms_new, dattr_new);
> > - dl_rebuild_rd_accounting();
> > sched_domains_mutex_unlock();
> > }
>
> With this patch, partition_and_rebuild_sched_domains() is essentially the
> same as partition_sched_domains(). We can remove
> partition_and_rebuild_sched_domains() and use partition_sched_domains()
> directly. Also we don't need to expose partition_sched_domains_locked() as
> well as there is no more caller outside of topology.c.
Indeed!
Thanks,
Juri