summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/Kconfig
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2009-08-18 18:06:27 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:02:25 -0700
commit2235acb21890cdd3bc189720b4e98fc1b5c3b268 (patch)
tree8f8ad318ed94b81b789e2d09c85e2f2ef7153ff7 /drivers/staging/iio/Kconfig
parent1637db44413e32a0f100dd4bd164644e641842f7 (diff)
Staging: IIO: Ring buffer: Initial pass at rarely locked ring buffer
Please note this ring buffer implementation is very much a work in progress (and hence RFC). In it's current form it is stable and reasonably efficient. There are a couple of unlikely cases that will lead to more data being lost that is strictly necessary. The target was for the case of requiring regular sampling even during user space reads. All comments welcome. The intention is to make this only one of several implementations with run time selection. For now there is only one, so it is hard coded into the drivers using it. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/Kconfig')
-rw-r--r--drivers/staging/iio/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/staging/iio/Kconfig b/drivers/staging/iio/Kconfig
index 6da4fb96cd28..869433f541cf 100644
--- a/drivers/staging/iio/Kconfig
+++ b/drivers/staging/iio/Kconfig
@@ -17,6 +17,18 @@ config IIO_RING_BUFFER
Provide core support for various ring buffer based data
acquisition methods.
+if IIO_RING_BUFFER
+
+config IIO_SW_RING
+ tristate "Industrial I/O lock free software ring"
+ help
+ example software ring buffer implementation. The design aim
+ of this particular realization was to minize write locking
+ with the intention that some devices would be able to write
+ in interrupt context.
+
+endif # IIO_RINGBUFFER
+
config IIO_TRIGGER
boolean "Enable triggered sampling support"
help