tty: remove sleep_on
authorJiri Slaby <jirislaby@gmail.com>
Thu, 11 Jun 2009 13:32:42 +0000 (14:32 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Jun 2009 15:51:07 +0000 (08:51 -0700)
commit5fc5b42a3bb564f0b6e03f0f1b522ed9100250ad
tree0dfae1d81c8cba5f1cb7a3cb32cd8d5fb089db78
parent4db2299da213d1ba8cf7f4c0a197ae7ba49db5cb
tty: remove sleep_on

Use wait_event instead of sleep_on in tty_block_til_ready.

Wait for ASYNC_CLOSING flag being 0.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_port.c