[PATCH] cpuset: Allow cpuset controller in default hierarchy

From: Waiman Long
Date: Thu Aug 24 2017 - 10:40:56 EST


Given the fact that thread mode is now queued for 4.14, it is now
time to enable cpuset to be used in the default hierarchy (cgroup v2)
as it is clearly threaded.

Signed-off-by: Waiman Long <longman@xxxxxxxxxx>
---
kernel/cgroup/cpuset.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
index f3539a4..fb99d66 100644
--- a/kernel/cgroup/cpuset.c
+++ b/kernel/cgroup/cpuset.c
@@ -2100,7 +2100,9 @@ struct cgroup_subsys cpuset_cgrp_subsys = {
.bind = cpuset_bind,
.fork = cpuset_fork,
.legacy_cftypes = files,
+ .dfl_cftypes = files,
.early_init = true,
+ .threaded = true,
};

/**
--
1.8.3.1