summaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_ioctl.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-06-15 15:14:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-24 01:43:02 +0200
commitfb7aa03db605e4f0b9a62cd4c77177c2596edd95 (patch)
tree503946923a498b938aa849457310ceedaefbd806 /drivers/tty/tty_ioctl.c
parentn_tty: Don't wait for buffer work in read() loop (diff)
downloadlinux-fb7aa03db605e4f0b9a62cd4c77177c2596edd95.tar.xz
linux-fb7aa03db605e4f0b9a62cd4c77177c2596edd95.zip
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>
Diffstat (limited to 'drivers/tty/tty_ioctl.c')
0 files changed, 0 insertions, 0 deletions