Re: [PATCH-cgroup] cgroup/cpuset: Optimize isolated partition only generate_sched_domains() calls

From: Tejun Heo
Date: Mon Jun 03 2024 - 15:48:22 EST


On Mon, Jun 03, 2024 at 03:38:22PM -0400, Waiman Long wrote:
> If only isolated partitions are being created underneath the cgroup root,
> there will only be one sched domain with top_cpuset.effective_cpus. We can
> skip the unnecessary sched domains scanning code and save some cycles.
>
> Signed-off-by: Waiman Long <longman@xxxxxxxxxx>

Applied to cgroup/for-6.11.

Thanks.

--
tejun