sched: Use task_rq_unlock() in __sched_setscheduler()
authorNamhyung Kim <namhyung.kim@lge.com>
Sat, 7 Jul 2012 07:49:02 +0000 (16:49 +0900)
committerIngo Molnar <mingo@kernel.org>
Thu, 26 Jul 2012 09:46:59 +0000 (11:46 +0200)
It seems there's no specific reason to open-code it.  I guess
commit 0122ec5b02f76 ("sched: Add p->pi_lock to task_rq_lock()")
simply missed it.  Let's be consistent with others.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1341647342-6742-1-git-send-email-namhyung@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c

index 5d011ef4c0df37ee859ac3d3871fcabd2164316a..2cb4e77779985ef6fca4891a6fe9fb323f291675 100644 (file)
@@ -4340,9 +4340,7 @@ recheck:
         */
        if (unlikely(policy == p->policy && (!rt_policy(policy) ||
                        param->sched_priority == p->rt_priority))) {
-
-               __task_rq_unlock(rq);
-               raw_spin_unlock_irqrestore(&p->pi_lock, flags);
+               task_rq_unlock(rq, p, &flags);
                return 0;
        }
 
This page took 0.029589 seconds and 5 git commands to generate.