projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fca254
)
sched: rt-bandwidth for user grouping interface
author
Peter Zijlstra
<a.p.zijlstra@chello.nl>
Tue, 19 Aug 2008 10:33:02 +0000
(12:33 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Tue, 19 Aug 2008 11:10:09 +0000
(13:10 +0200)
rt_runtime is a signed value
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/user.c
patch
|
blob
|
history
diff --git
a/kernel/user.c
b/kernel/user.c
index 865ecf57a09604cc1307407cc99f90c1cecc5309..39d6159fae430cf60811839f4e2dbd20aadb9e4a 100644
(file)
--- 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, "%l
u
\n", sched_group_rt_runtime(up->tg));
+ return sprintf(buf, "%l
d
\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, "%l
u
", &rt_runtime);
+ sscanf(buf, "%l
d
", &rt_runtime);
rc = sched_group_set_rt_runtime(up->tg, rt_runtime);