]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cgroup/cpuset: remove use_parent_ecpus of cpuset
authorChen Ridong <chenridong@huawei.com>
Tue, 20 Aug 2024 03:01:26 +0000 (03:01 +0000)
committerTejun Heo <tj@kernel.org>
Tue, 20 Aug 2024 18:51:48 +0000 (08:51 -1000)
commit3c2acae88844e7423a50b5cbe0a2c9d430fcd20c
tree0ffeca570860e488d32b874ae9e0b24455fa11ca
parent9414f68d454529ff7e68f0c2aefe0a007060c66a
cgroup/cpuset: remove use_parent_ecpus of cpuset

use_parent_ecpus is used to track whether the children are using the
parent's effective_cpus. When a parent's effective_cpus is changed
due to changes in a child partition's effective_xcpus, any child
using parent'effective_cpus must call update_cpumasks_hier. However,
if a child is not a valid partition, it is sufficient to determine
whether to call update_cpumasks_hier based on whether the child's
effective_cpus is going to change. To make the code more succinct,
it is suggested to remove use_parent_ecpus.

Signed-off-by: Chen Ridong <chenridong@huawei.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c