diff options
author | Shigeru Yoshida <shigeru.yoshida@gmail.com> | 2013-11-23 18:38:01 +0900 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-11-26 18:37:55 +0100 |
commit | 39e24d8ffbb6aa90222527dbd5991ec49fbbf323 (patch) | |
tree | e7c1f08bf00265289c0e91e9180add8f58a4b4dd | |
parent | b975dc3689fc6a3718ad288ce080924f9cb7e176 (diff) | |
download | talos-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.c | 2 |
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; } |