aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/core.c
diff options
context:
space:
mode:
authorShigeru Yoshida <shigeru.yoshida@gmail.com>2013-11-23 04:38:01 -0500
committerIngo Molnar <mingo@kernel.org>2013-11-26 12:37:55 -0500
commit39e24d8ffbb6aa90222527dbd5991ec49fbbf323 (patch)
treee7c1f08bf00265289c0e91e9180add8f58a4b4dd /kernel/sched/core.c
parentb975dc3689fc6a3718ad288ce080924f9cb7e176 (diff)
sched: Fix a trivial syntax misuse
Use if statement instead of while loop. Signed-off-by: Shigeru Yoshida <shigeru.yoshida@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Jiri Kosina <trivial@kernel.org> Link: http://lkml.kernel.org/r/20131123.183801.769652906919404319.shigeru.yoshida@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r--kernel/sched/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index c1808606ee5f..687985b0284e 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3654,7 +3654,7 @@ again:
3654 } 3654 }
3655 3655
3656 double_rq_lock(rq, p_rq); 3656 double_rq_lock(rq, p_rq);
3657 while (task_rq(p) != p_rq) { 3657 if (task_rq(p) != p_rq) {
3658 double_rq_unlock(rq, p_rq); 3658 double_rq_unlock(rq, p_rq);
3659 goto again; 3659 goto again;
3660 } 3660 }