From c149092806a5daf6935ff4cf1816d3ebccf698dd Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 19 Oct 2015 10:11:05 +0800 Subject: 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. --- aepd/main.c | 5 ----- 1 file changed, 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; -- cgit v1.2.3