]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpuset: add cpuset1_init helper for v1 initialization
authorChen Ridong <chenridong@huawei.com>
Thu, 18 Dec 2025 09:31:38 +0000 (09:31 +0000)
committerTejun Heo <tj@kernel.org>
Thu, 18 Dec 2025 18:36:15 +0000 (08:36 -1000)
commit4ef42c645f0ec9b56f0715204013a27c2fec801e
tree6eebb451407ae334ecdbcdf6bee7d9e09741b43f
parent56805c1bb19ea3e40131ecf1485fdfce1bc0366b
cpuset: add cpuset1_init helper for v1 initialization

This patch introduces the cpuset1_init helper in cpuset_v1.c to initialize
v1-specific fields, including the fmeter and relax_domain_level members.

The relax_domain_level related code will be moved to cpuset_v1.c in a
subsequent patch. After this move, v1-specific members will only be
visible when CONFIG_CPUSETS_V1=y.

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