lkml.org 
[lkml]   [2012]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] DLS: fix check_preempt_curr_dl
From
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
--

\
 
 \ /
  Last update: 2012-04-09 14:55    [W:0.053 / U:0.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site