]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Make driver-side flip buffers lockless
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:36:09 +0000 (09:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:47:09 +0000 (16:47 -0700)
commit2d5c2f091ab3255b0a9d8997aa1b5c81cb551782
treea5e2eff33c0ea9b5349bb03e890f3768730365e2
parent4bea6ad5c0908fc895120f6687a2f2754728852e
tty: Make driver-side flip buffers lockless

Driver-side flip buffer input is already single-threaded; 'publish'
the .next link as the last operation on the tail buffer so the
'consumer' sees the already-completed flip buffer.

The commit buffer index is already 'published' by driver-side functions.

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