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)
commit40c5520f55924ba87090d0d93222baad74202559
tree731576eb5bb3c37df60c8cc78adbfc4d18bc0dd4
parent5f0a3cfcfd315d87de8f80af49b114daf7137823
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