]> 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)
commitad82aac58bdb707cff3234a55a7adebe2e70000c
tree4fc9ae42e841d6402906a12bf1dbd1594c179b3a
parent1d1f2db843a522e435024f0b7a2f4a706ab8d1ef
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