aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2015-10-19 10:11:05 +0800
committerAndy Green <andy.green@linaro.org>2015-10-19 10:16:25 +0800
commitc149092806a5daf6935ff4cf1816d3ebccf698dd (patch)
tree65c58a6d2fb6a4ee043ea2f3ce20651d71ed2477
parent0c39096830fa455642ad1970c8a28dcfac64a47f (diff)
remove needless fdatasync
On systems like Ubuntu which don't have a tmpfs on /tmp, this caused very long delays between sample acquisitions on aepd. And it turned out to not be necessary even so. Thanks to leo.yan@linaro.org for the debugging help and confirming the solution.
-rw-r--r--aepd/main.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/aepd/main.c b/aepd/main.c
index 3a45e5d..91fecd4 100644
--- a/aepd/main.c
+++ b/aepd/main.c
@@ -59,11 +59,6 @@ int add_fifo(void *data, unsigned int length)
return (int)l;
}
- /*
- * make sure the other processes can see it...
- */
- fdatasync(aepd_shared->fd_fifo_write);
-
aepd_shared->fifo_pos += length;
if (aepd_shared->fifo_pos >= aepd_shared->modulo_integer_chan_size) {
aepd_shared->fifo_wrapped = 1;