OSDN Git Service

Merge 4.4.187 into android-4.4
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / include / linux / cgroup_subsys.h
1 /*
2  * List of cgroup subsystems.
3  *
4  * DO NOT ADD ANY SUBSYSTEM WITHOUT EXPLICIT ACKS FROM CGROUP MAINTAINERS.
5  */
6
7 /*
8  * This file *must* be included with SUBSYS() defined.
9  * SUBSYS_TAG() is a noop if undefined.
10  */
11
12 #ifndef SUBSYS_TAG
13 #define __TMP_SUBSYS_TAG
14 #define SUBSYS_TAG(_x)
15 #endif
16
17 #if IS_ENABLED(CONFIG_CPUSETS)
18 SUBSYS(cpuset)
19 #endif
20
21 #if IS_ENABLED(CONFIG_CGROUP_SCHED)
22 SUBSYS(cpu)
23 #endif
24
25 #if IS_ENABLED(CONFIG_CGROUP_CPUACCT)
26 SUBSYS(cpuacct)
27 #endif
28
29 #if IS_ENABLED(CONFIG_CGROUP_SCHEDTUNE)
30 SUBSYS(schedtune)
31 #endif
32
33 #if IS_ENABLED(CONFIG_BLK_CGROUP)
34 SUBSYS(io)
35 #endif
36
37 #if IS_ENABLED(CONFIG_MEMCG)
38 SUBSYS(memory)
39 #endif
40
41 #if IS_ENABLED(CONFIG_CGROUP_DEVICE)
42 SUBSYS(devices)
43 #endif
44
45 #if IS_ENABLED(CONFIG_CGROUP_FREEZER)
46 SUBSYS(freezer)
47 #endif
48
49 #if IS_ENABLED(CONFIG_CGROUP_NET_CLASSID)
50 SUBSYS(net_cls)
51 #endif
52
53 #if IS_ENABLED(CONFIG_CGROUP_PERF)
54 SUBSYS(perf_event)
55 #endif
56
57 #if IS_ENABLED(CONFIG_CGROUP_NET_PRIO)
58 SUBSYS(net_prio)
59 #endif
60
61 #if IS_ENABLED(CONFIG_CGROUP_HUGETLB)
62 SUBSYS(hugetlb)
63 #endif
64
65 /*
66  * Subsystems that implement the can_fork() family of callbacks.
67  */
68 SUBSYS_TAG(CANFORK_START)
69
70 #if IS_ENABLED(CONFIG_CGROUP_PIDS)
71 SUBSYS(pids)
72 #endif
73
74 SUBSYS_TAG(CANFORK_END)
75
76 /*
77  * The following subsystems are not supported on the default hierarchy.
78  */
79 #if IS_ENABLED(CONFIG_CGROUP_DEBUG)
80 SUBSYS(debug)
81 #endif
82
83 #ifdef __TMP_SUBSYS_TAG
84 #undef __TMP_SUBSYS_TAG
85 #undef SUBSYS_TAG
86 #endif
87
88 /*
89  * DO NOT ADD ANY SUBSYSTEM WITHOUT EXPLICIT ACKS FROM CGROUP MAINTAINERS.
90  */