diff options
author | Andy Walls <awalls@radix.net> | 2008-08-22 20:03:11 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:53 -0400 |
commit | b04bce476c57ac844962462ee4c813c44fa942cf (patch) | |
tree | fb08a484414e6e486fd31c59c8533c46fd4b1341 /drivers/media/video/cx18/cx18-driver.h | |
parent | 59ba2b002265f2e862aa7f0df3f13c09ea99c4da (diff) |
V4L/DVB (8772): cx18: Convert cx18_queue buffers member to atomic_t
cx18: Convert cx18_queue buffers member to atomic_t. This allows safe
concurrent access to check if a queue has data without having to acquire the
queue spinlock.
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-driver.h')
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.h b/drivers/media/video/cx18/cx18-driver.h index 28c490b1b64e..8812a5ec635f 100644 --- a/drivers/media/video/cx18/cx18-driver.h +++ b/drivers/media/video/cx18/cx18-driver.h | |||
@@ -216,7 +216,7 @@ struct cx18_buffer { | |||
216 | 216 | ||
217 | struct cx18_queue { | 217 | struct cx18_queue { |
218 | struct list_head list; | 218 | struct list_head list; |
219 | u32 buffers; | 219 | atomic_t buffers; |
220 | u32 bytesused; | 220 | u32 bytesused; |
221 | }; | 221 | }; |
222 | 222 | ||