X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=kernel%2Fsched%2Fcore.c;h=6f61fd44a5c56e7aa686cad3e164fedd838163b9;hb=0b7877d4eea3f93e3dd941999522bbd8c538cb53;hp=0533a688ce22fc378dc66a02e901132049ee8efd;hpb=69964ea4c7b68c9399f7977aa5b9aa6539a6a98a;p=deliverable%2Flinux.git diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 0533a688ce22..6f61fd44a5c5 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -7980,13 +7980,9 @@ static struct cftype cpu_files[] = { .write_u64 = cpu_rt_period_write_uint, }, #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 = { .name = "cpu", .create = cpu_cgroup_create, @@ -7994,8 +7990,8 @@ struct cgroup_subsys cpu_cgroup_subsys = { .can_attach = cpu_cgroup_can_attach, .attach = cpu_cgroup_attach, .exit = cpu_cgroup_exit, - .populate = cpu_cgroup_populate, .subsys_id = cpu_cgroup_subsys_id, + .base_cftypes = cpu_files, .early_init = 1, }; @@ -8180,13 +8176,9 @@ static struct cftype files[] = { .name = "stat", .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. * @@ -8218,7 +8210,7 @@ struct cgroup_subsys cpuacct_subsys = { .name = "cpuacct", .create = cpuacct_create, .destroy = cpuacct_destroy, - .populate = cpuacct_populate, .subsys_id = cpuacct_subsys_id, + .base_cftypes = files, }; #endif /* CONFIG_CGROUP_CPUACCT */