提交 7f51f298 编写于 作者: I Ingo Molnar

sched: clean up schedule_balance_rt()

clean up schedule_balance_rt().
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 80bf3171
...@@ -701,12 +701,10 @@ static int pull_rt_task(struct rq *this_rq) ...@@ -701,12 +701,10 @@ static int pull_rt_task(struct rq *this_rq)
return ret; return ret;
} }
static void schedule_balance_rt(struct rq *rq, static void schedule_balance_rt(struct rq *rq, struct task_struct *prev)
struct task_struct *prev)
{ {
/* Try to pull RT tasks here if we lower this rq's prio */ /* Try to pull RT tasks here if we lower this rq's prio */
if (unlikely(rt_task(prev)) && if (unlikely(rt_task(prev)) && rq->rt.highest_prio > prev->prio)
rq->rt.highest_prio > prev->prio)
pull_rt_task(rq); pull_rt_task(rq);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册