diff options
author | Andy Walls <awalls@radix.net> | 2008-11-16 18:18:05 -0500 |
---|---|---|
committer | Andy Walls <awalls@radix.net> | 2008-11-16 18:18:05 -0500 |
commit | 89619141828f0acac90a00d469d4458672624cd8 (patch) | |
tree | 7f8f9f6406b149c14b1e03d35f9e7e6e88c1fe7b /linux/drivers/media/video/cx18/cx18-streams.c | |
parent | 24ecbd3b24f466029402175e8bfd52a9044a0f3d (diff) | |
download | mediapointer-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-streams.c')
-rw-r--r-- | linux/drivers/media/video/cx18/cx18-streams.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-streams.c b/linux/drivers/media/video/cx18/cx18-streams.c index 823e6d655..21434df1a 100644 --- a/linux/drivers/media/video/cx18/cx18-streams.c +++ b/linux/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); |