瀏覽代碼

sched: clean up schedule_balance_rt()

clean up schedule_balance_rt().

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Ingo Molnar 18 年之前
父節點
當前提交
7f51f29820
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      kernel/sched_rt.c

+ 2 - 4
kernel/sched_rt.c

@@ -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,
-				struct task_struct *prev)
+static void schedule_balance_rt(struct rq *rq, 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)) &&
-	    rq->rt.highest_prio > prev->prio)
+	if (unlikely(rt_task(prev)) && rq->rt.highest_prio > prev->prio)
 		pull_rt_task(rq);
 		pull_rt_task(rq);
 }
 }