]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpuset: move update_domain_attr_tree to cpuset_v1.c
authorChen Ridong <chenridong@huawei.com>
Thu, 18 Dec 2025 09:31:39 +0000 (09:31 +0000)
committerTejun Heo <tj@kernel.org>
Thu, 18 Dec 2025 18:36:15 +0000 (08:36 -1000)
commitcb33f8814c4af3c917fa249cd9ef34b17a5ef562
treedf2a4c427c035bf0c9d8197420c88e300d68a6f4
parent4ef42c645f0ec9b56f0715204013a27c2fec801e
cpuset: move update_domain_attr_tree to cpuset_v1.c

Since relax_domain_level is only applicable to v1, move
update_domain_attr_tree() to cpuset-v1.c, which solely updates
relax_domain_level,

Additionally, relax_domain_level is now initialized in cpuset1_inited.
Accordingly, the initialization of relax_domain_level in top_cpuset is
removed. The unnecessary remote_partition initialization in top_cpuset
is also cleaned up.

As a result, relax_domain_level can be defined in cpuset only 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