diff mbox

[v3,4/4] sched/deadline: Remove redundant conditions from task_woken_dl()

Message ID 1431442004-18716-4-git-send-email-xlpang@126.com
State Accepted
Commit 3fe33bcdd358dd8c641cf4d92c9d2d9972ca94dd
Headers show

Commit Message

Xunlei Pang May 12, 2015, 2:46 p.m. UTC
From: Xunlei Pang <pang.xunlei@linaro.org>

Sync up the same behaviour as that of RT:
Remove "has_pushable_dl_tasks(rq)" and "!test_tsk_need_resched(rq->curr)".

Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org>
---
 kernel/sched/deadline.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox

Patch

diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 968612b..38c08c4 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -1564,8 +1564,6 @@  static void post_schedule_dl(struct rq *rq)
 static void task_woken_dl(struct rq *rq, struct task_struct *p)
 {
 	if (!task_running(rq, p) &&
-	    !test_tsk_need_resched(rq->curr) &&
-	    has_pushable_dl_tasks(rq) &&
 	    p->nr_cpus_allowed > 1 &&
 	    dl_task(rq->curr) &&
 	    (rq->curr->nr_cpus_allowed < 2 ||