Messages in this thread Patch in this message | | | Date | Mon, 9 Apr 2012 20:51:49 +0800 | Subject | [PATCH] DLS: fix check_preempt_curr_dl | From | Hillf Danton <> |
| |
If not sure the CPU of waker is the CPU of wakee, we have to check the current task of given runqueue.
Signed-off-by: Hillf Danton <dhillf@gmail.com> ---
--- a/kernel/sched_dl.c Mon Apr 9 19:39:56 2012 +++ b/kernel/sched_dl.c Mon Apr 9 20:42:08 2012 @@ -888,9 +888,9 @@ static void check_preempt_curr_dl(struct * let us try to decide what's the best thing to do... */ if ((p->dl.deadline == rq->curr->dl.deadline) && - !need_resched()) + !test_tsk_need_resched(rq->curr)) check_preempt_equal_dl(rq, p); -#endif /* CONFIG_SMP */ +#endif }
#ifdef CONFIG_SCHED_HRTICK --
| |