]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/sched/deadline.c
sched/deadline: Avoid a superfluous check
[karo-tx-linux.git] / kernel / sched / deadline.c
index 0a81a954c0410595b03c331bdf9c88bc6a6d1852..24c18dc10fd7ade5656c6868f1c587dd1e3f507d 100644 (file)
@@ -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 &&