summaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup_subsys.h
diff options
context:
space:
mode:
authorSrivatsa Vaddagiri2007-10-19 08:41:03 +0200
committerLinus Torvalds2007-10-19 20:53:51 +0200
commit68318b8e0b61f98f0be833cc862ab6dee69348b4 (patch)
treecb48f82c73ff2204754ff3d5955a0073ca38c383 /include/linux/cgroup_subsys.h
parentAdd documentation for extended crashkernel syntax (diff)
downloadkernel-qcow2-linux-68318b8e0b61f98f0be833cc862ab6dee69348b4.tar.gz
kernel-qcow2-linux-68318b8e0b61f98f0be833cc862ab6dee69348b4.tar.xz
kernel-qcow2-linux-68318b8e0b61f98f0be833cc862ab6dee69348b4.zip
Hook up group scheduler with control groups
Enable "cgroup" (formerly containers) based fair group scheduling. This will let administrator create arbitrary groups of tasks (using "cgroup" pseudo filesystem) and control their cpu bandwidth usage. [akpm@linux-foundation.org: fix cpp condition] Signed-off-by: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> Cc: Randy Dunlap <randy.dunlap@oracle.com> Cc: Balbir Singh <balbir@in.ibm.com> Cc: Paul Menage <menage@google.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/cgroup_subsys.h')
-rw-r--r--include/linux/cgroup_subsys.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/cgroup_subsys.h b/include/linux/cgroup_subsys.h
index 651ff0869b2d..0b9bfbde8168 100644
--- a/include/linux/cgroup_subsys.h
+++ b/include/linux/cgroup_subsys.h
@@ -30,3 +30,9 @@ SUBSYS(ns)
#endif
/* */
+
+#ifdef CONFIG_FAIR_CGROUP_SCHED
+SUBSYS(cpu_cgroup)
+#endif
+
+/* */