cgroup/cpuset: remove fetch_xcpus
authorChen Ridong <chenridong@huawei.com>
Tue, 20 Aug 2024 03:01:25 +0000 (03:01 +0000)
committerTejun Heo <tj@kernel.org>
Tue, 20 Aug 2024 18:51:34 +0000 (08:51 -1000)
commit9414f68d454529ff7e68f0c2aefe0a007060c66a
tree5ae58a3d31080f94bfd4a34083670c183edb38fe
parente55f45b4bafee0ef488e815aa88368444ec5c79c
cgroup/cpuset: remove fetch_xcpus

Both fetch_xcpus and user_xcpus functions are used to retrieve the value
of exclusive_cpus. If exclusive_cpus is not set, cpus_allowed is the
implicit value used as exclusive in a local partition. I can not imagine
a scenario where effective_xcpus is not empty when exclusive_cpus is
empty. Therefore, I suggest removing the fetch_xcpus function.

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