Commit 79064fbf authored by Ingo Molnar's avatar Ingo Molnar

sched: clean up pick_next_highest_task_rt()

clean up pick_next_highest_task_rt().
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 0d1311a5
...@@ -242,8 +242,7 @@ static int pick_rt_task(struct rq *rq, struct task_struct *p, int cpu) ...@@ -242,8 +242,7 @@ static int pick_rt_task(struct rq *rq, struct task_struct *p, int cpu)
} }
/* Return the second highest RT task, NULL otherwise */ /* Return the second highest RT task, NULL otherwise */
static struct task_struct *pick_next_highest_task_rt(struct rq *rq, static struct task_struct *pick_next_highest_task_rt(struct rq *rq, int cpu)
int cpu)
{ {
struct rt_prio_array *array = &rq->rt.active; struct rt_prio_array *array = &rq->rt.active;
struct task_struct *next; struct task_struct *next;
...@@ -270,7 +269,8 @@ static struct task_struct *pick_next_highest_task_rt(struct rq *rq, ...@@ -270,7 +269,8 @@ static struct task_struct *pick_next_highest_task_rt(struct rq *rq,
if (queue->next->next != queue) { if (queue->next->next != queue) {
/* same prio task */ /* same prio task */
next = list_entry(queue->next->next, struct task_struct, run_list); next = list_entry(queue->next->next, struct task_struct,
run_list);
if (pick_rt_task(rq, next, cpu)) if (pick_rt_task(rq, next, cpu))
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment