aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 313cd4f057cf..e2f85c7a7476 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8318,9 +8318,9 @@ struct cpuacct {
8318struct cgroup_subsys cpuacct_subsys; 8318struct cgroup_subsys cpuacct_subsys;
8319 8319
8320/* return cpu accounting group corresponding to this container */ 8320/* return cpu accounting group corresponding to this container */
8321static inline struct cpuacct *cgroup_ca(struct cgroup *cont) 8321static inline struct cpuacct *cgroup_ca(struct cgroup *cgrp)
8322{ 8322{
8323 return container_of(cgroup_subsys_state(cont, cpuacct_subsys_id), 8323 return container_of(cgroup_subsys_state(cgrp, cpuacct_subsys_id),
8324 struct cpuacct, css); 8324 struct cpuacct, css);
8325} 8325}
8326 8326
@@ -8333,7 +8333,7 @@ static inline struct cpuacct *task_ca(struct task_struct *tsk)
8333 8333
8334/* create a new cpu accounting group */ 8334/* create a new cpu accounting group */
8335static struct cgroup_subsys_state *cpuacct_create( 8335static struct cgroup_subsys_state *cpuacct_create(
8336 struct cgroup_subsys *ss, struct cgroup *cont) 8336 struct cgroup_subsys *ss, struct cgroup *cgrp)
8337{ 8337{
8338 struct cpuacct *ca = kzalloc(sizeof(*ca), GFP_KERNEL); 8338 struct cpuacct *ca = kzalloc(sizeof(*ca), GFP_KERNEL);
8339 8339
@@ -8351,18 +8351,18 @@ static struct cgroup_subsys_state *cpuacct_create(
8351 8351
8352/* destroy an existing cpu accounting group */ 8352/* destroy an existing cpu accounting group */
8353static void 8353static void
8354cpuacct_destroy(struct cgroup_subsys *ss, struct cgroup *cont) 8354cpuacct_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp)
8355{ 8355{
8356 struct cpuacct *ca = cgroup_ca(cont); 8356 struct cpuacct *ca = cgroup_ca(cgrp);
8357 8357
8358 free_percpu(ca->cpuusage); 8358 free_percpu(ca->cpuusage);
8359 kfree(ca); 8359 kfree(ca);
8360} 8360}
8361 8361
8362/* return total cpu usage (in nanoseconds) of a group */ 8362/* return total cpu usage (in nanoseconds) of a group */
8363static u64 cpuusage_read(struct cgroup *cont, struct cftype *cft) 8363static u64 cpuusage_read(struct cgroup *cgrp, struct cftype *cft)
8364{ 8364{
8365 struct cpuacct *ca = cgroup_ca(cont); 8365 struct cpuacct *ca = cgroup_ca(cgrp);
8366 u64 totalcpuusage = 0; 8366 u64 totalcpuusage = 0;
8367 int i; 8367 int i;
8368 8368
@@ -8388,9 +8388,9 @@ static struct cftype files[] = {
8388 }, 8388 },
8389}; 8389};
8390 8390
8391static int cpuacct_populate(struct cgroup_subsys *ss, struct cgroup *cont) 8391static int cpuacct_populate(struct cgroup_subsys *ss, struct cgroup *cgrp)
8392{ 8392{
8393 return cgroup_add_files(cont, ss, files, ARRAY_SIZE(files)); 8393 return cgroup_add_files(cgrp, ss, files, ARRAY_SIZE(files));
8394} 8394}
8395 8395
8396/* 8396/*