Merge branch 'sched/urgent' into sched/core
[firefly-linux-kernel-4.4.55.git] / kernel / sched / fair.c
index a319d56c760507ec8477c3e7662d11a16fec12b1..59e072b2db970b80eb2eac7b435d297305640e2a 100644 (file)
@@ -3330,7 +3330,7 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int wake_
         * Batch and idle tasks do not preempt non-idle tasks (their preemption
         * is driven by the tick):
         */
-       if (unlikely(p->policy != SCHED_NORMAL))
+       if (unlikely(p->policy != SCHED_NORMAL) || !sched_feat(WAKEUP_PREEMPTION))
                return;
 
        find_matching_se(&se, &pse);