Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f51f298 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: clean up schedule_balance_rt()



clean up schedule_balance_rt().

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 80bf3171
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -701,12 +701,10 @@ static int pull_rt_task(struct rq *this_rq)
	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 */
	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);
}