]> 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)
commit43fa88896f28ea39d1d66287c119727a381e0cea
treeab2e9fe80d4ce8148334c84fb11ea8f792069d7f
parent88fe99f701027d5bb06bbe9217037b1413a19155
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