diff options
| author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-02-28 23:32:43 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:44:58 -0400 |
| commit | 32cd756a80aaef657ac09c76e6eff3ba65567790 (patch) | |
| tree | 96945c0d1ffb03694757d174ba5969bead89aa31 /kernel | |
| parent | 48f20a9a9488c432fc86df1ff4b7f4fa895d1183 (diff) | |
sched: cleanup cpuacct variable names
Change the variable names to the common convention for the cpuacct
subsystem.
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sched.c | 18 |
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 { | |||
| 8318 | struct cgroup_subsys cpuacct_subsys; | 8318 | struct cgroup_subsys cpuacct_subsys; |
| 8319 | 8319 | ||
| 8320 | /* return cpu accounting group corresponding to this container */ | 8320 | /* return cpu accounting group corresponding to this container */ |
| 8321 | static inline struct cpuacct *cgroup_ca(struct cgroup *cont) | 8321 | static 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 */ |
| 8335 | static struct cgroup_subsys_state *cpuacct_create( | 8335 | static 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 */ |
| 8353 | static void | 8353 | static void |
| 8354 | cpuacct_destroy(struct cgroup_subsys *ss, struct cgroup *cont) | 8354 | cpuacct_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 */ |
| 8363 | static u64 cpuusage_read(struct cgroup *cont, struct cftype *cft) | 8363 | static 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 | ||
| 8391 | static int cpuacct_populate(struct cgroup_subsys *ss, struct cgroup *cont) | 8391 | static 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 | /* |
