diff options
author | Wanpeng Li <[email protected]> | 2015-03-17 19:15:30 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-03-27 09:36:12 +0100 |
commit | bd4bde14b93cce8fa77765ff709e0be55abdba2c (patch) | |
tree | aec69388085407ee49200e720d6359d0b7945461 | |
parent | d4573c3e1c992668f5dcd57d1c2ced56ae9650b9 (diff) |
sched/deadline: Avoid a superfluous check
Since commit 40767b0dc768 ("sched/deadline: Fix deadline parameter
modification handling") we clear the thottled state when switching
from a dl task, therefore we should never find it set in switching to
a dl task.
Signed-off-by: Wanpeng Li <[email protected]>
[ Improved the changelog. ]
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Juri Lelli <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | kernel/sched/deadline.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 0a81a954c041..24c18dc10fd7 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -1665,14 +1665,6 @@ static void switched_to_dl(struct rq *rq, struct task_struct *p) { int check_resched = 1; - /* - * If p is throttled, don't consider the possibility - * of preempting rq->curr, the check will be done right - * after its runtime will get replenished. - */ - if (unlikely(p->dl.dl_throttled)) - return; - if (task_on_rq_queued(p) && rq->curr != p) { #ifdef CONFIG_SMP if (p->nr_cpus_allowed > 1 && rq->dl.overloaded && |