diff options
author | Paul Menage <menage@google.com> | 2008-04-29 03:59:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:07 -0400 |
commit | f4c753b7eacc277e506066abdda351cbc1cf8e6a (patch) | |
tree | 2510264d4fac836dc64acd700846a5fe8d960b1e /kernel/sched.c | |
parent | 3ff31d0cca38b3c20e88a022bf38c4f7c98492f0 (diff) |
CGroup API files: rename read/write_uint methods to read_write_u64
Several people have justifiably complained that the "_uint" suffix is
inappropriate for functions that handle u64 values, so this patch just renames
all these functions and their users to have the suffic _u64.
[peterz@infradead.org: build fix]
Signed-off-by: Paul Menage <menage@google.com>
Cc: "Li Zefan" <lizf@cn.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Paul Jackson <pj@sgi.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: "YAMAMOTO Takashi" <yamamoto@valinux.co.jp>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 740fb409e5bb..2528fbd974b4 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -9057,13 +9057,13 @@ cpu_cgroup_attach(struct cgroup_subsys *ss, struct cgroup *cgrp, | |||
9057 | } | 9057 | } |
9058 | 9058 | ||
9059 | #ifdef CONFIG_FAIR_GROUP_SCHED | 9059 | #ifdef CONFIG_FAIR_GROUP_SCHED |
9060 | static int cpu_shares_write_uint(struct cgroup *cgrp, struct cftype *cftype, | 9060 | static int cpu_shares_write_u64(struct cgroup *cgrp, struct cftype *cftype, |
9061 | u64 shareval) | 9061 | u64 shareval) |
9062 | { | 9062 | { |
9063 | return sched_group_set_shares(cgroup_tg(cgrp), shareval); | 9063 | return sched_group_set_shares(cgroup_tg(cgrp), shareval); |
9064 | } | 9064 | } |
9065 | 9065 | ||
9066 | static u64 cpu_shares_read_uint(struct cgroup *cgrp, struct cftype *cft) | 9066 | static u64 cpu_shares_read_u64(struct cgroup *cgrp, struct cftype *cft) |
9067 | { | 9067 | { |
9068 | struct task_group *tg = cgroup_tg(cgrp); | 9068 | struct task_group *tg = cgroup_tg(cgrp); |
9069 | 9069 | ||
@@ -9133,8 +9133,8 @@ static struct cftype cpu_files[] = { | |||
9133 | #ifdef CONFIG_FAIR_GROUP_SCHED | 9133 | #ifdef CONFIG_FAIR_GROUP_SCHED |
9134 | { | 9134 | { |
9135 | .name = "shares", | 9135 | .name = "shares", |
9136 | .read_uint = cpu_shares_read_uint, | 9136 | .read_u64 = cpu_shares_read_u64, |
9137 | .write_uint = cpu_shares_write_uint, | 9137 | .write_u64 = cpu_shares_write_u64, |
9138 | }, | 9138 | }, |
9139 | #endif | 9139 | #endif |
9140 | #ifdef CONFIG_RT_GROUP_SCHED | 9140 | #ifdef CONFIG_RT_GROUP_SCHED |
@@ -9145,8 +9145,8 @@ static struct cftype cpu_files[] = { | |||
9145 | }, | 9145 | }, |
9146 | { | 9146 | { |
9147 | .name = "rt_period_us", | 9147 | .name = "rt_period_us", |
9148 | .read_uint = cpu_rt_period_read_uint, | 9148 | .read_u64 = cpu_rt_period_read_uint, |
9149 | .write_uint = cpu_rt_period_write_uint, | 9149 | .write_u64 = cpu_rt_period_write_uint, |
9150 | }, | 9150 | }, |
9151 | #endif | 9151 | #endif |
9152 | }; | 9152 | }; |
@@ -9277,8 +9277,8 @@ out: | |||
9277 | static struct cftype files[] = { | 9277 | static struct cftype files[] = { |
9278 | { | 9278 | { |
9279 | .name = "usage", | 9279 | .name = "usage", |
9280 | .read_uint = cpuusage_read, | 9280 | .read_u64 = cpuusage_read, |
9281 | .write_uint = cpuusage_write, | 9281 | .write_u64 = cpuusage_write, |
9282 | }, | 9282 | }, |
9283 | }; | 9283 | }; |
9284 | 9284 | ||