aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorWanpeng Li <wanpeng.li@linux.intel.com>2014-10-30 18:39:34 -0400
committerIngo Molnar <mingo@kernel.org>2014-11-04 01:17:55 -0500
commit6b0a563f3a534827c1b56e53c3fd0fccec3c7895 (patch)
treeba769ef869fe97607c61dead8707eb7fa53dd5e4 /kernel/sched
parentacb32132ec0433c03bed750f3e9508dc29db0328 (diff)
sched/deadline: Push task away if the deadline is equal to curr during wakeup
This patch pushes task away if the dealine of the task is equal to current during wake up. The same behavior as rt class. Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Juri Lelli <juri.lelli@arm.com> Cc: Kirill Tkhai <ktkhai@parallels.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/1414708776-124078-4-git-send-email-wanpeng.li@linux.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/deadline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 8867a67b8f0a..e7779b3feec4 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -1506,7 +1506,7 @@ static void task_woken_dl(struct rq *rq, struct task_struct *p)
1506 p->nr_cpus_allowed > 1 && 1506 p->nr_cpus_allowed > 1 &&
1507 dl_task(rq->curr) && 1507 dl_task(rq->curr) &&
1508 (rq->curr->nr_cpus_allowed < 2 || 1508 (rq->curr->nr_cpus_allowed < 2 ||
1509 dl_entity_preempt(&rq->curr->dl, &p->dl))) { 1509 !dl_entity_preempt(&p->dl, &rq->curr->dl))) {
1510 push_dl_tasks(rq); 1510 push_dl_tasks(rq);
1511 } 1511 }
1512} 1512}