diff options
author | Waiman Long <longman@redhat.com> | 2018-11-08 16:08:43 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-11-08 21:27:31 +0100 |
commit | 5776ceccd4de2a53dec740422a409e9e588c5a70 (patch) | |
tree | 41e78ca0388a3dca2ce57376bbb00f388e3ecbe7 /kernel/cgroup | |
parent | cpuset: Make generate_sched_domains() work with partition (diff) | |
download | linux-5776ceccd4de2a53dec740422a409e9e588c5a70.tar.xz linux-5776ceccd4de2a53dec740422a409e9e588c5a70.zip |
cpuset: Expose cpus.effective and mems.effective on cgroup v2 root
Because of the fact that setting the "cpuset.sched.partition" in
a direct child of root can remove CPUs from the root's effective CPU
list, it makes sense to know what CPUs are left in the root cgroup for
scheduling purpose. So the "cpuset.cpus.effective" control file is now
exposed in the v2 cgroup root.
For consistency, the "cpuset.mems.effective" control file is exposed
as well.
Signed-off-by: Waiman Long <longman@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r-- | kernel/cgroup/cpuset.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 3960de7a75cc..fc1a809cd5bb 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -2574,14 +2574,12 @@ static struct cftype dfl_files[] = { .name = "cpus.effective", .seq_show = cpuset_common_seq_show, .private = FILE_EFFECTIVE_CPULIST, - .flags = CFTYPE_NOT_ON_ROOT, }, { .name = "mems.effective", .seq_show = cpuset_common_seq_show, .private = FILE_EFFECTIVE_MEMLIST, - .flags = CFTYPE_NOT_ON_ROOT, }, { |