]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/sched/fair.c
Merge branch 'numa/core'
[karo-tx-linux.git] / kernel / sched / fair.c
index 1e24aa17cf9429248fb6445e94f5d785fb027d03..2679bcfec7310410cd09d1b04bcb531399d753ec 100644 (file)
@@ -3185,7 +3185,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);