aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched_fair.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 6167336a2372..ebd6de8d17fd 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1329,6 +1329,9 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int sync)
1329 return; 1329 return;
1330 } 1330 }
1331 1331
1332 if (unlikely(p->sched_class != &fair_sched_class))
1333 return;
1334
1332 if (unlikely(se == pse)) 1335 if (unlikely(se == pse))
1333 return; 1336 return;
1334 1337