Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1662963 > unrolled thread

[PATCH 10/10] sched: Make cpu/cpuacct threaded controllers

Started byTejun Heo <tj@kernel.org>
First post2017-06-10 16:10 +0200
Last post2017-06-10 16:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 10/10] sched: Make cpu/cpuacct threaded controllers Tejun Heo <tj@kernel.org> - 2017-06-10 16:10 +0200

#1662963 — [PATCH 10/10] sched: Make cpu/cpuacct threaded controllers

FromTejun Heo <tj@kernel.org>
Date2017-06-10 16:10 +0200
Subject[PATCH 10/10] sched: Make cpu/cpuacct threaded controllers
Message-ID<tQPfs-84G-13@gated-at.bofh.it>
From: Waiman Long <longman@redhat.com>

Make cpu and cpuacct cgroup controllers usable within a threaded cgroup.

Signed-off-by: Waiman Long <longman@redhat.com>
---
 kernel/sched/core.c    | 1 +
 kernel/sched/cpuacct.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index c86ab2c4ed3b..85e5358da560 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7469,6 +7469,7 @@ struct cgroup_subsys cpu_cgrp_subsys = {
 	.legacy_cftypes	= cpu_legacy_files,
 	.dfl_cftypes	= cpu_files,
 	.early_init	= true,
+	.threaded	= true,
 #ifdef CONFIG_CGROUP_CPUACCT
 	/*
 	 * cpuacct is enabled together with cpu on the unified hierarchy
diff --git a/kernel/sched/cpuacct.c b/kernel/sched/cpuacct.c
index 07ed36cc2600..ee4976a5dde0 100644
--- a/kernel/sched/cpuacct.c
+++ b/kernel/sched/cpuacct.c
@@ -412,4 +412,5 @@ struct cgroup_subsys cpuacct_cgrp_subsys = {
 	.css_free	= cpuacct_css_free,
 	.legacy_cftypes	= files,
 	.early_init	= true,
+	.threaded	= true,
 };
-- 
2.13.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web