]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sched: clean up pick_next_highest_task_rt()
authorIngo Molnar <mingo@elte.hu>
Fri, 25 Jan 2008 20:08:14 +0000 (21:08 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 25 Jan 2008 20:08:14 +0000 (21:08 +0100)
clean up pick_next_highest_task_rt().

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_rt.c

index 61d198845f0097846df67ded9823ed08cb678723..b8435fd47f78c92aed6e676712e5a626496f296c 100644 (file)
@@ -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 */
-static struct task_struct *pick_next_highest_task_rt(struct rq *rq,
-                                                    int cpu)
+static struct task_struct *pick_next_highest_task_rt(struct rq *rq, int cpu)
 {
        struct rt_prio_array *array = &rq->rt.active;
        struct task_struct *next;
@@ -270,7 +269,8 @@ static struct task_struct *pick_next_highest_task_rt(struct rq *rq,
 
        if (queue->next->next != queue) {
                /* 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))
                        goto out;
        }