summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-11-25 15:56:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-12-03 21:22:28 +0100
commit355c1a14d4009a43e4d1f9cb42a382f0a94d01c4 (patch)
tree2c03c360371afe9e4704ea6d2437eb61e1cfbbc6 /drivers/devfreq
parentiio: Add data_available callback for buffers (diff)
downloadlinux-355c1a14d4009a43e4d1f9cb42a382f0a94d01c4.tar.xz
linux-355c1a14d4009a43e4d1f9cb42a382f0a94d01c4.zip
iio: kfifo_buf: Implement data_available() callback
This patch implements the data_available() callback for the kfifo buffer instead of using the stufftoread flag. The kfifo used by the buffer already knows whether it is empty or not based on the position of its read and write pointer. Using this makes it a lot easier to tell whether data is available or not and it is not necessary to take special measures to ensure that no race conditions between reading and writing from the buffer occur. Note, that we still have to take the buffers lock to protect against concurrent resizeing of the kfifo. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/devfreq')
0 files changed, 0 insertions, 0 deletions