summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx18/cx18-driver.h
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-11-16 18:18:05 -0500
committerAndy Walls <awalls@radix.net>2008-11-16 18:18:05 -0500
commit89619141828f0acac90a00d469d4458672624cd8 (patch)
tree7f8f9f6406b149c14b1e03d35f9e7e6e88c1fe7b /linux/drivers/media/video/cx18/cx18-driver.h
parent24ecbd3b24f466029402175e8bfd52a9044a0f3d (diff)
downloadmediapointer-dvb-s2-89619141828f0acac90a00d469d4458672624cd8.tar.gz
mediapointer-dvb-s2-89619141828f0acac90a00d469d4458672624cd8.tar.bz2
cx18: Convert per stream queue spinlocks into mutexes
From: Andy Walls <awalls@radix.net> Convert the per stream queue spinlocks into mutexes. All queue manipulation happens via the work queue or system calls into the driver, and not in an interrupt context. This reduces the amout of time the cx18 driver keeps interrupts disabled. Priority: normal Signed-off-by: Andy Walls <awalls@radix.net>
Diffstat (limited to 'linux/drivers/media/video/cx18/cx18-driver.h')
-rw-r--r--linux/drivers/media/video/cx18/cx18-driver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-driver.h b/linux/drivers/media/video/cx18/cx18-driver.h
index f8929eb72..041fa660a 100644
--- a/linux/drivers/media/video/cx18/cx18-driver.h
+++ b/linux/drivers/media/video/cx18/cx18-driver.h
@@ -271,7 +271,7 @@ struct cx18_stream {
unsigned mdl_offset;
u32 id;
- spinlock_t qlock; /* locks access to the queues */
+ struct mutex qlock; /* locks access to the queues */
unsigned long s_flags; /* status flags, see above */
int dma; /* can be PCI_DMA_TODEVICE,
PCI_DMA_FROMDEVICE or