]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (11618): cx18: Convert per stream mutex locks to per queue spin locks
authorAndy Walls <awalls@radix.net>
Tue, 14 Apr 2009 02:08:00 +0000 (23:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:20:44 +0000 (18:20 -0300)
commit693cacd91d3848323aeb905b50bff4f58d404583
tree731576eb5bb3c37df60c8cc78adbfc4d18bc0dd4
parentbff3e77713741af9a7acab57a32501f17506c474
V4L/DVB (11618): cx18: Convert per stream mutex locks to per queue spin locks

To avoid sleeps in providing buffers to user space and in handling incoming
buffers from the capture unit, converted the per stream mutex for locking
queues to 3 spin locks.  There is now a spin lock per queue
to increase concurrency when moving buffers around.

Also simplified queue manipulations and buffer handling of incoming buffers
of data from the capture unit.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-driver.h
drivers/media/video/cx18/cx18-mailbox.c
drivers/media/video/cx18/cx18-queue.c
drivers/media/video/cx18/cx18-streams.c