summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorChen Ridong <chenridong@huawei.com>2024-08-30 12:02:28 +0200
committerTejun Heo <tj@kernel.org>2024-08-30 22:00:16 +0200
commit1abab1ba0775036bb67c6c57945c637be644c04f (patch)
tree2ba00e983c38999335d5b1a20b009f1d6ec3f912 /init
parentcgroup/cpuset: rename functions shared between v1 and v2 (diff)
downloadlinux-1abab1ba0775036bb67c6c57945c637be644c04f.tar.xz
linux-1abab1ba0775036bb67c6c57945c637be644c04f.zip
cgroup/cpuset: guard cpuset-v1 code under CONFIG_CPUSETS_V1
This patch introduces CONFIG_CPUSETS_V1 and guard cpuset-v1 code under CONFIG_CPUSETS_V1. The default value of CONFIG_CPUSETS_V1 is N, so that user who adopted v2 don't have 'pay' for cpuset v1. Signed-off-by: Chen Ridong <chenridong@huawei.com> Acked-by: Waiman Long <longman@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index a465ea9525bd..8bf091354bea 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1143,6 +1143,19 @@ config CPUSETS
Say N if unsure.
+config CPUSETS_V1
+ bool "Legacy cgroup v1 cpusets controller"
+ depends on CPUSETS
+ default n
+ help
+ Legacy cgroup v1 cpusets controller which has been deprecated by
+ cgroup v2 implementation. The v1 is there for legacy applications
+ which haven't migrated to the new cgroup v2 interface yet. If you
+ do not have any such application then you are completely fine leaving
+ this option disabled.
+
+ Say N if unsure.
+
config PROC_PID_CPUSET
bool "Include legacy /proc/<pid>/cpuset file"
depends on CPUSETS