]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cgroup/cpuset: Optimize isolated partition only generate_sched_domains() calls
authorWaiman Long <longman@redhat.com>
Mon, 3 Jun 2024 19:38:22 +0000 (15:38 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 3 Jun 2024 19:47:11 +0000 (09:47 -1000)
commit1805c1729f52edaa021288473b09f9c7f74fb1ca
tree7b3572a78be0e3af4df570c58d36f67bbd0c2c75
parent018ee567def3b43f810aebf15221eef3858177b2
cgroup/cpuset: Optimize isolated partition only generate_sched_domains() calls

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@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c