diff options
author | Andy Walls <awalls@radix.net> | 2008-11-17 00:18:05 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 12:38:08 +0100 |
commit | f576ceefb481e5617ecfb77e3a05b3d26dbf2f92 (patch) | |
tree | d85b78c6ee7c5a4f52d6b8d6bcba87d00be8d0b0 /drivers/media/video/cx18/cx18-streams.c | |
parent | V4L/DVB (9721): cx18: Change to singlethreaded global work queue thread for d... (diff) | |
download | linux-f576ceefb481e5617ecfb77e3a05b3d26dbf2f92.tar.xz linux-f576ceefb481e5617ecfb77e3a05b3d26dbf2f92.zip |
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.c | 2 |
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) s->buffers = 63; s->buf_size = (max_size / s->buffers) & ~0xfff; } - spin_lock_init(&s->qlock); + mutex_init(&s->qlock); init_waitqueue_head(&s->waitq); s->id = -1; cx18_queue_init(&s->q_free); |