diff options
author | Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com> | 2007-10-15 11:00:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:08 -0400 |
commit | 72ea22f8fbc893425faefa60641f45a4cdef2261 (patch) | |
tree | 9c805c28bd2051feb9a9eac280ae824c4f7fedc8 /kernel/sched_fair.c | |
parent | 83b699ed20f5218580a1b7042064082e2e05f8c5 (diff) |
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 <vatsa@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | 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 92563cd5af75..d8d2e2ff513d 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) | |||
725 | */ | 725 | */ |
726 | static void yield_task_fair(struct rq *rq) | 726 | static void yield_task_fair(struct rq *rq) |
727 | { | 727 | { |
728 | struct cfs_rq *cfs_rq = &rq->cfs; | 728 | struct cfs_rq *cfs_rq = task_cfs_rq(rq->curr); |
729 | struct rb_node **link = &cfs_rq->tasks_timeline.rb_node; | 729 | struct rb_node **link = &cfs_rq->tasks_timeline.rb_node; |
730 | struct sched_entity *rightmost, *se = &rq->curr->se; | 730 | struct sched_entity *rightmost, *se = &rq->curr->se; |
731 | struct rb_node *parent; | 731 | struct rb_node *parent; |