]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: Replace echo_cnt with computed value
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 14:04:23 +0000 (10:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 00:02:21 +0000 (17:02 -0700)
commit64a5faa03babcaab7f9695e54f6d7b55106d7029
tree4fc9ae42e841d6402906a12bf1dbd1594c179b3a
parentb1f532e7f364e6ab4fcbbd426fbb7525dba164ad
n_tty: Replace echo_cnt with computed value

Prepare for lockless echo_buf handling; compute current byte count
of echo_buf from head and tail indices.

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