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

From: Xunlei Pang
Date: Tue May 12 2015 - 10:48:55 EST


From: Xunlei Pang <pang.xunlei@xxxxxxxxxx>

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@xxxxxxxxxx>
---
kernel/sched/deadline.c | 2 --
1 file changed, 2 deletions(-)

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 ||
--
1.9.1


--
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/