aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched_rt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index 05ada7d44800..4d0a60e47dfa 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -701,12 +701,10 @@ static int pull_rt_task(struct rq *this_rq)
701 return ret; 701 return ret;
702} 702}
703 703
704static void schedule_balance_rt(struct rq *rq, 704static void schedule_balance_rt(struct rq *rq, struct task_struct *prev)
705 struct task_struct *prev)
706{ 705{
707 /* Try to pull RT tasks here if we lower this rq's prio */ 706 /* Try to pull RT tasks here if we lower this rq's prio */
708 if (unlikely(rt_task(prev)) && 707 if (unlikely(rt_task(prev)) && rq->rt.highest_prio > prev->prio)
709 rq->rt.highest_prio > prev->prio)
710 pull_rt_task(rq); 708 pull_rt_task(rq);
711} 709}
712 710