projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbeeb81
)
sched: fix vslice
author
Peter Zijlstra
<a.p.zijlstra@chello.nl>
Fri, 9 Nov 2007 21:39:37 +0000
(22:39 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 9 Nov 2007 21:39:37 +0000
(22:39 +0100)
vslice was missing a factor NICE_0_LOAD, as weight is in
weight*NICE_0_LOAD units.
the effect of this bug was larger initial slices and
thus latency-noisier forks.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c
patch
|
blob
|
history
diff --git
a/kernel/sched_fair.c
b/kernel/sched_fair.c
index 01859f662ab7c834826f9197e93ebe9d44ad548a..62b057603f07b2dd5ce79e47d891ceecd835e827 100644
(file)
--- a/
kernel/sched_fair.c
+++ b/
kernel/sched_fair.c
@@
-259,6
+259,7
@@
static u64 __sched_vslice(unsigned long rq_weight, unsigned long nr_running)
{
u64 vslice = __sched_period(nr_running);
+ vslice *= NICE_0_LOAD;
do_div(vslice, rq_weight);
return vslice;