Skip to content

Commit

Permalink
sched: clean up schedule_balance_rt()
Browse files Browse the repository at this point in the history
clean up schedule_balance_rt().

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Jan 25, 2008
1 parent 80bf317 commit 7f51f29
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7f51f29

Please sign in to comment.