summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorChen Ridong <chenridong@huawei.com>2026-11-07 20:00:58 +0800
committerTejun Heo <tj@kernel.org>2026-11-09 05:23:09 -1000
commit93eb230146f8c6246b0b96e7f1b980ac5e8b8d81 (patch)
tree89525ab9650ef6e96f44d430b8bcb7272a3fbcc7 /scripts/Makefile.thinlto
parentba4834fc81ddc0b500843c827c09d3ff95a317a9 (diff)
downloadlinux-next-93eb230146f8c6246b0b96e7f1b980ac5e8b8d81.tar.gz
linux-next-93eb230146f8c6246b0b96e7f1b980ac5e8b8d81.zip
cpuset: add early empty cpumask check in partition_xcpus_add/del
Add a check for an empty cpumask at the start of partition_xcpus_add() and partition_xcpus_del(). This allows the functions to return early, avoiding unnecessary computation when there is no work to be done. With these changes, partition_xcpus_add() and partition_xcpus_del() can be called even if xcpus is empty. The caller no longer needs to check whether xcpus is empty, eliminating many conditional statements. Signed-off-by: Chen Ridong <chenridong@huawei.com> Reviewed-by: Guopeng Zhang <zhangguopeng@kylinos.cn> Reviewed-by: Waiman Long <longman@redhat.com> Signed-off-by: Ridong Chen <chenridong@xiaomi.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions