diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cgroup.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 14160b5b693f..28319a9fe569 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -40,13 +40,19 @@ extern int cgroupstats_build(struct cgroupstats *stats, | |||
40 | 40 | ||
41 | extern const struct file_operations proc_cgroup_operations; | 41 | extern const struct file_operations proc_cgroup_operations; |
42 | 42 | ||
43 | /* Define the enumeration of all cgroup subsystems */ | 43 | /* Define the enumeration of all builtin cgroup subsystems */ |
44 | #define SUBSYS(_x) _x ## _subsys_id, | 44 | #define SUBSYS(_x) _x ## _subsys_id, |
45 | enum cgroup_subsys_id { | 45 | enum cgroup_subsys_id { |
46 | #include <linux/cgroup_subsys.h> | 46 | #include <linux/cgroup_subsys.h> |
47 | CGROUP_SUBSYS_COUNT | 47 | CGROUP_BUILTIN_SUBSYS_COUNT |
48 | }; | 48 | }; |
49 | #undef SUBSYS | 49 | #undef SUBSYS |
50 | /* | ||
51 | * This define indicates the maximum number of subsystems that can be loaded | ||
52 | * at once. We limit to this many since cgroupfs_root has subsys_bits to keep | ||
53 | * track of all of them. | ||
54 | */ | ||
55 | #define CGROUP_SUBSYS_COUNT (BITS_PER_BYTE*sizeof(unsigned long)) | ||
50 | 56 | ||
51 | /* Per-subsystem/per-cgroup state maintained by the system. */ | 57 | /* Per-subsystem/per-cgroup state maintained by the system. */ |
52 | struct cgroup_subsys_state { | 58 | struct cgroup_subsys_state { |