OSDN Git Service

cgroup: define controller file conventions
[android-x86/kernel.git] / include / linux / cgroup.h
index a593e29..c6bf9d3 100644 (file)
 
 #ifdef CONFIG_CGROUPS
 
+/*
+ * All weight knobs on the default hierarhcy should use the following min,
+ * default and max values.  The default value is the logarithmic center of
+ * MIN and MAX and allows 100x to be expressed in both directions.
+ */
+#define CGROUP_WEIGHT_MIN              1
+#define CGROUP_WEIGHT_DFL              100
+#define CGROUP_WEIGHT_MAX              10000
+
 /* a css_task_iter should be treated as an opaque object */
 struct css_task_iter {
        struct cgroup_subsys            *ss;