]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: Refactor input_available_p() by call site
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 2 Dec 2013 19:24:45 +0000 (14:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 00:52:40 +0000 (16:52 -0800)
commit68ed6161090d6b648542bfa7707e2f3e5d69863e
treeab2e9fe80d4ce8148334c84fb11ea8f792069d7f
parentf26ca416c7aaf01be99e5997044273e710a96bf8
n_tty: Refactor input_available_p() by call site

Distinguish if caller is n_tty_poll() or n_tty_read(), and
set the read/wakeup threshold accordingly.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c