Commit:     72ea22f8fbc893425faefa60641f45a4cdef2261
Parent:     83b699ed20f5218580a1b7042064082e2e05f8c5
Author:     Srivatsa Vaddagiri <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 15 17:00:08 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Mon Oct 15 17:00:08 2007 +0200

    sched: fix minor bug in yield
    - fix a minor bug in yield (seen for CONFIG_FAIR_GROUP_SCHED),
      group scheduling would skew when yield was called.
    Signed-off-by: Srivatsa Vaddagiri <[EMAIL PROTECTED]>
    Signed-off-by: Dhaval Giani <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]>
    Reviewed-by: Thomas Gleixner <[EMAIL PROTECTED]>
 kernel/sched_fair.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 92563cd..d8d2e2f 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -725,7 +725,7 @@ static void dequeue_task_fair(struct rq *rq, struct 
task_struct *p, int sleep)
 static void yield_task_fair(struct rq *rq)
-       struct cfs_rq *cfs_rq = &rq->cfs;
+       struct cfs_rq *cfs_rq = task_cfs_rq(rq->curr);
        struct rb_node **link = &cfs_rq->tasks_timeline.rb_node;
        struct sched_entity *rightmost, *se = &rq->curr->se;
        struct rb_node *parent;
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

Reply via email to