Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=10b777246c6953100099af1870d35c8b24d49b12
Commit:     10b777246c6953100099af1870d35c8b24d49b12
Parent:     dbeeb816e805091e7cfc03baf36dc40b4adb2bbd
Author:     Peter Zijlstra <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 9 22:39:37 2007 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Fri Nov 9 22:39:37 2007 +0100

    sched: fix vslice
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 kernel/sched_fair.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 01859f6..62b0576 100644
--- 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to