diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2008-08-19 10:33:02 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-19 11:10:09 (GMT) |
commit | af4491e51632d01fbc2b856ffa9ebcd4b38db68c (patch) | |
tree | 220ae302256cfca2d87e1fc6291b7b3ff26036e5 | |
parent | 1fca25427482387689fa27594c992a961d98768f (diff) | |
download | linux-af4491e51632d01fbc2b856ffa9ebcd4b38db68c.tar.xz |
sched: rt-bandwidth for user grouping interface
rt_runtime is a signed value
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | kernel/user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/user.c b/kernel/user.c index 865ecf57..39d6159 100644 --- a/kernel/user.c +++ b/kernel/user.c @@ -169,7 +169,7 @@ static ssize_t cpu_rt_runtime_show(struct kobject *kobj, { struct user_struct *up = container_of(kobj, struct user_struct, kobj); - return sprintf(buf, "%lu\n", sched_group_rt_runtime(up->tg)); + return sprintf(buf, "%ld\n", sched_group_rt_runtime(up->tg)); } static ssize_t cpu_rt_runtime_store(struct kobject *kobj, @@ -180,7 +180,7 @@ static ssize_t cpu_rt_runtime_store(struct kobject *kobj, unsigned long rt_runtime; int rc; - sscanf(buf, "%lu", &rt_runtime); + sscanf(buf, "%ld", &rt_runtime); rc = sched_group_set_rt_runtime(up->tg, rt_runtime); |