]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
n_tty: Avoid false-sharing echo buffer indices
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 14:04:29 +0000 (10:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 00:02:22 +0000 (17:02 -0700)
commit9dfd16ddea9bdbc8343340e543732db0a467ae32
treef5ab13fd7bbc7ff99ccc44ecf127fede65452dc2
parent29c7c5ca36d9c132cf9c37a09bc43626e790fb4c
n_tty: Avoid false-sharing echo buffer indices

Separate the head & commit indices from the tail index to avoid
cache-line contention (so called 'false-sharing') between concurrent
threads.

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