aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-streams.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-11-16 18:18:05 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:38:08 -0500
commitf576ceefb481e5617ecfb77e3a05b3d26dbf2f92 (patch)
treed85b78c6ee7c5a4f52d6b8d6bcba87d00be8d0b0 /drivers/media/video/cx18/cx18-streams.c
parent18b5dc2ed7f0ede825dd1f93fefc7a61aba866e3 (diff)
V4L/DVB (9722): cx18: Convert per stream queue spinlocks into mutexes
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. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-streams.c')
-rw-r--r--drivers/media/video/cx18/cx18-streams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-streams.c b/drivers/media/video/cx18/cx18-streams.c
index e6d808f7cc8f..e218e4d0ebf4 100644
--- a/drivers/media/video/cx18/cx18-streams.c
+++ b/drivers/media/video/cx18/cx18-streams.c
@@ -132,7 +132,7 @@ static void cx18_stream_init(struct cx18 *cx, int type)
132 s->buffers = 63; 132 s->buffers = 63;
133 s->buf_size = (max_size / s->buffers) & ~0xfff; 133 s->buf_size = (max_size / s->buffers) & ~0xfff;
134 } 134 }
135 spin_lock_init(&s->qlock); 135 mutex_init(&s->qlock);
136 init_waitqueue_head(&s->waitq); 136 init_waitqueue_head(&s->waitq);
137 s->id = -1; 137 s->id = -1;
138 cx18_queue_init(&s->q_free); 138 cx18_queue_init(&s->q_free);