commit | fb7aa03db605e4f0b9a62cd4c77177c2596edd95 | [log] [tgz] |
---|---|---|
author | Peter Hurley <peter@hurleysoftware.com> | Sat Jun 15 09:14:30 2013 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jul 23 16:43:02 2013 -0700 |
tree | 503946923a498b938aa849457310ceedaefbd806 | |
parent | f95499c3030fe1bfad57745f2db1959c5b43dca8 [diff] |
n_tty: Separate buffer indices to prevent cache-line sharing If the read buffer indices are in the same cache-line, cpus will contended over the cache-line (so called 'false sharing'). Separate the producer-published fields from the consumer-published fields; document the locks relevant to each field. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>