Messages in this thread Patch in this message | | | Date | Tue, 23 Sep 2008 15:33:45 +0200 | From | Peter Zijlstra <> | Subject | [PATCH 5/6] sched: fixup buddy selection |
| |
We should set the buddy even though we might already have the TIF_RESCHED flag set.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> --- kernel/sched_fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6/kernel/sched_fair.c =================================================================== --- linux-2.6.orig/kernel/sched_fair.c +++ linux-2.6/kernel/sched_fair.c @@ -1350,6 +1350,8 @@ static void check_preempt_wakeup(struct if (unlikely(se == pse)) return; + cfs_rq_of(pse)->next = pse; + /* * We can come here with TIF_NEED_RESCHED already set from new task * wake up path. @@ -1357,8 +1359,6 @@ static void check_preempt_wakeup(struct if (test_tsk_need_resched(curr)) return; - cfs_rq_of(pse)->next = pse; - /* * Batch tasks do not preempt (their preemption is driven by * the tick): --
| |