summaryrefslogtreecommitdiffstats
path: root/drivers/ide/cs5530.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-06-15 15:14:21 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-24 01:43:00 +0200
commitbc5a5e3f45d047844830233fb95b19a95c864a0f (patch)
tree7d28526f720ac5460dde965c57d2fea1ed6410b3 /drivers/ide/cs5530.c
parentn_tty: Get read_cnt through accessor (diff)
downloadlinux-bc5a5e3f45d047844830233fb95b19a95c864a0f.tar.xz
linux-bc5a5e3f45d047844830233fb95b19a95c864a0f.zip
n_tty: Don't wrap input buffer indices at buffer size
Wrap read_buf indices (read_head, read_tail, canon_head) at max representable value, instead of at the N_TTY_BUF_SIZE. This step is necessary to allow lockless reads of these shared variables (by updating the variables atomically). Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ide/cs5530.c')
0 files changed, 0 insertions, 0 deletions