diff options
author | Andy Walls <awalls@radix.net> | 2008-08-22 20:03:11 -0400 |
---|---|---|
committer | Andy Walls <awalls@radix.net> | 2008-08-22 20:03:11 -0400 |
commit | 212438136868cf522ade051b9dcfb749643a7c16 (patch) | |
tree | bcb850d02e84015f1a2f5e114f223e79036de184 /linux/drivers/media/video/cx18/cx18-driver.h | |
parent | dbcd49d6f8956af76b5e13e4967054f3983732f2 (diff) | |
download | mediapointer-dvb-s2-212438136868cf522ade051b9dcfb749643a7c16.tar.gz mediapointer-dvb-s2-212438136868cf522ade051b9dcfb749643a7c16.tar.bz2 |
cx18: Convert cx18_queue buffers member to atomic_t
From: Andy Walls <awalls@radix.net>
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.
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.h | 2 |
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 28c490b1b..8812a5ec6 100644 --- a/linux/drivers/media/video/cx18/cx18-driver.h +++ b/linux/drivers/media/video/cx18/cx18-driver.h @@ -216,7 +216,7 @@ struct cx18_buffer { struct cx18_queue { struct list_head list; - u32 buffers; + atomic_t buffers; u32 bytesused; }; |