|
@@ -7970,13 +7970,9 @@ static struct cftype cpu_files[] = {
|
|
.write_u64 = cpu_rt_period_write_uint,
|
|
.write_u64 = cpu_rt_period_write_uint,
|
|
},
|
|
},
|
|
#endif
|
|
#endif
|
|
|
|
+ { } /* terminate */
|
|
};
|
|
};
|
|
|
|
|
|
-static int cpu_cgroup_populate(struct cgroup_subsys *ss, struct cgroup *cont)
|
|
|
|
-{
|
|
|
|
- return cgroup_add_files(cont, ss, cpu_files, ARRAY_SIZE(cpu_files));
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
struct cgroup_subsys cpu_cgroup_subsys = {
|
|
struct cgroup_subsys cpu_cgroup_subsys = {
|
|
.name = "cpu",
|
|
.name = "cpu",
|
|
.create = cpu_cgroup_create,
|
|
.create = cpu_cgroup_create,
|
|
@@ -7984,8 +7980,8 @@ struct cgroup_subsys cpu_cgroup_subsys = {
|
|
.can_attach = cpu_cgroup_can_attach,
|
|
.can_attach = cpu_cgroup_can_attach,
|
|
.attach = cpu_cgroup_attach,
|
|
.attach = cpu_cgroup_attach,
|
|
.exit = cpu_cgroup_exit,
|
|
.exit = cpu_cgroup_exit,
|
|
- .populate = cpu_cgroup_populate,
|
|
|
|
.subsys_id = cpu_cgroup_subsys_id,
|
|
.subsys_id = cpu_cgroup_subsys_id,
|
|
|
|
+ .base_cftypes = cpu_files,
|
|
.early_init = 1,
|
|
.early_init = 1,
|
|
};
|
|
};
|
|
|
|
|
|
@@ -8170,13 +8166,9 @@ static struct cftype files[] = {
|
|
.name = "stat",
|
|
.name = "stat",
|
|
.read_map = cpuacct_stats_show,
|
|
.read_map = cpuacct_stats_show,
|
|
},
|
|
},
|
|
|
|
+ { } /* terminate */
|
|
};
|
|
};
|
|
|
|
|
|
-static int cpuacct_populate(struct cgroup_subsys *ss, struct cgroup *cgrp)
|
|
|
|
-{
|
|
|
|
- return cgroup_add_files(cgrp, ss, files, ARRAY_SIZE(files));
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* charge this task's execution time to its accounting group.
|
|
* charge this task's execution time to its accounting group.
|
|
*
|
|
*
|
|
@@ -8208,7 +8200,7 @@ struct cgroup_subsys cpuacct_subsys = {
|
|
.name = "cpuacct",
|
|
.name = "cpuacct",
|
|
.create = cpuacct_create,
|
|
.create = cpuacct_create,
|
|
.destroy = cpuacct_destroy,
|
|
.destroy = cpuacct_destroy,
|
|
- .populate = cpuacct_populate,
|
|
|
|
.subsys_id = cpuacct_subsys_id,
|
|
.subsys_id = cpuacct_subsys_id,
|
|
|
|
+ .base_cftypes = files,
|
|
};
|
|
};
|
|
#endif /* CONFIG_CGROUP_CPUACCT */
|
|
#endif /* CONFIG_CGROUP_CPUACCT */
|