提交 39e24d8f 编写于 作者: S Shigeru Yoshida 提交者: Ingo Molnar

sched: Fix a trivial syntax misuse

Use if statement instead of while loop.
Signed-off-by: NShigeru 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.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
上级 b975dc36
...@@ -3654,7 +3654,7 @@ bool __sched yield_to(struct task_struct *p, bool preempt) ...@@ -3654,7 +3654,7 @@ bool __sched yield_to(struct task_struct *p, bool preempt)
} }
double_rq_lock(rq, p_rq); double_rq_lock(rq, p_rq);
while (task_rq(p) != p_rq) { if (task_rq(p) != p_rq) {
double_rq_unlock(rq, p_rq); double_rq_unlock(rq, p_rq);
goto again; goto again;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册