]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpuset: add cpuset1_online_css helper for v1-specific operations
authorChen Ridong <chenridong@huawei.com>
Thu, 18 Dec 2025 09:31:37 +0000 (09:31 +0000)
committerTejun Heo <tj@kernel.org>
Thu, 18 Dec 2025 18:36:08 +0000 (08:36 -1000)
commit56805c1bb19ea3e40131ecf1485fdfce1bc0366b
treeadf93ad7f8e51cd5e340e056b30846ec7dac9a95
parent14c11e1b2ac47fbc51503c7d0f35fad9ea5ea46e
cpuset: add cpuset1_online_css helper for v1-specific operations

This commit introduces the cpuset1_online_css helper to centralize
v1-specific handling during cpuset online. It performs operations such as
updating the CS_SPREAD_PAGE, CS_SPREAD_SLAB, and CGRP_CPUSET_CLONE_CHILDREN
flags, which are unique to the cpuset v1 control group interface.

The helper is now placed in cpuset-v1.c to maintain clear separation
between v1 and v2 logic.

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-internal.h
kernel/cgroup/cpuset-v1.c
kernel/cgroup/cpuset.c