sched: refactor wait_for_completion_timeout()
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 20 Jun 2008 14:32:20 +0000 (18:32 +0400)
committerIngo Molnar <mingo@elte.hu>
Fri, 20 Jun 2008 15:15:49 +0000 (17:15 +0200)
Simplify the code and fix the boundary condition of
wait_for_completion_timeout(,0).

We can kill the first __remove_wait_queue() as well.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>

No differences found