From: Peter Zijlstra Date: Tue, 4 Nov 2008 20:25:08 +0000 (+0100) Subject: sched: fix fair preempt check X-Git-Tag: v2.6.28-rc4~31^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d95f98d0691d3aba5e35850011946a08c9b36428;p=linux-2.6-omap-h63xx.git sched: fix fair preempt check Impact: fix cross-class preemption Inter-class wakeup preemptions should go on class order. Signed-off-by: Peter Zijlstra Acked-by: Mike Galbraith Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 6167336a237..ebd6de8d17f 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) return; } + if (unlikely(p->sched_class != &fair_sched_class)) + return; + if (unlikely(se == pse)) return;