[PATCH] DLS: fix check_preempt_curr_dl

From: Hillf Danton
Date: Mon Apr 09 2012 - 08:51:46 EST


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@xxxxxxxxx>
---

--- 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
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/