summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShigeru Yoshida <shigeru.yoshida@gmail.com>2013-11-23 18:38:01 +0900
committerIngo Molnar <mingo@kernel.org>2013-11-26 18:37:55 +0100
commit39e24d8ffbb6aa90222527dbd5991ec49fbbf323 (patch)
treee7c1f08bf00265289c0e91e9180add8f58a4b4dd
parentb975dc3689fc6a3718ad288ce080924f9cb7e176 (diff)
downloadtalos-obmc-linux-39e24d8ffbb6aa90222527dbd5991ec49fbbf323.tar.gz
talos-obmc-linux-39e24d8ffbb6aa90222527dbd5991ec49fbbf323.zip
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>
-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:
}
double_rq_lock(rq, p_rq);
- while (task_rq(p) != p_rq) {
+ if (task_rq(p) != p_rq) {
double_rq_unlock(rq, p_rq);
goto again;
}
OpenPOWER on IntegriCloud