Skip to content

Commit bd4bde1

Browse files
Wanpeng LiIngo Molnar
authored andcommitted
sched/deadline: Avoid a superfluous check
Since commit 40767b0 ("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 <wanpeng.li@linux.intel.com> [ Improved the changelog. ] Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Juri Lelli <juri.lelli@arm.com> Link: http://lkml.kernel.org/r/1426590931-4639-1-git-send-email-wanpeng.li@linux.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent d4573c3 commit bd4bde1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

kernel/sched/deadline.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,14 +1665,6 @@ static void switched_to_dl(struct rq *rq, struct task_struct *p)
16651665
{
16661666
int check_resched = 1;
16671667

1668-
/*
1669-
* If p is throttled, don't consider the possibility
1670-
* of preempting rq->curr, the check will be done right
1671-
* after its runtime will get replenished.
1672-
*/
1673-
if (unlikely(p->dl.dl_throttled))
1674-
return;
1675-
16761668
if (task_on_rq_queued(p) && rq->curr != p) {
16771669
#ifdef CONFIG_SMP
16781670
if (p->nr_cpus_allowed > 1 && rq->dl.overloaded &&

0 commit comments

Comments
 (0)