]> git.ipfire.org Git - thirdparty/linux.git/commit
cpuset: use parse_cpulist for setting cpus.exclusive
authorChen Ridong <chenridong@huawei.com>
Wed, 17 Sep 2025 06:04:53 +0000 (06:04 +0000)
committerTejun Heo <tj@kernel.org>
Wed, 17 Sep 2025 18:37:31 +0000 (08:37 -1000)
commitde9f15e21c55a0a7d2c907b7f0eec95385c5a9de
tree486c7fd81c5153690b15841dc3d0a1c8af678c90
parent27db8246004ad467ab36dedce847e24f9ca34b94
cpuset: use parse_cpulist for setting cpus.exclusive

Previous patches made parse_cpulist handle empty cpu mask input.
Now use this helper for exclusive cpus setting. Also, compute_trialcs_xcpus
can be called with empty cpus and handles it correctly.

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