Skip to content

Commit

Permalink
sched: Fix a trivial syntax misuse
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shigeru Yoshida authored and Ingo Molnar committed Nov 26, 2013
1 parent b975dc3 commit 39e24d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3654,7 +3654,7 @@ bool __sched yield_to(struct task_struct *p, bool preempt)
}

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;
}
Expand Down

0 comments on commit 39e24d8

Please sign in to comment.