]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sched: pull_rt_task() cleanup
authorMike Galbraith <efault@gmx.de>
Fri, 25 Jan 2008 20:08:30 +0000 (21:08 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 25 Jan 2008 20:08:30 +0000 (21:08 +0100)
"goto out" is an odd way to spell "skip".

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_rt.c

index 1178257613adef2642bf21a7f59d3366db81df06..1144bf55669d01c571d3d332df086efa39cc5d99 100644 (file)
@@ -877,10 +877,8 @@ static int pull_rt_task(struct rq *this_rq)
                /*
                 * Are there still pullable RT tasks?
                 */
-               if (src_rq->rt.rt_nr_running <= 1) {
-                       spin_unlock(&src_rq->lock);
-                       continue;
-               }
+               if (src_rq->rt.rt_nr_running <= 1)
+                       goto skip;
 
                p = pick_next_highest_task_rt(src_rq, this_cpu);
 
@@ -904,7 +902,7 @@ static int pull_rt_task(struct rq *this_rq)
                         */
                        if (p->prio < src_rq->curr->prio ||
                            (next && next->prio < src_rq->curr->prio))
-                               goto out;
+                               goto skip;
 
                        ret = 1;
 
@@ -924,7 +922,7 @@ static int pull_rt_task(struct rq *this_rq)
                        next = p;
 
                }
out:
skip:
                spin_unlock(&src_rq->lock);
        }