summaryrefslogtreecommitdiffstats
path: root/samples/pktgen
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2018-01-01 02:24:42 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-08 16:03:42 +0100
commit8ea2a63869517271f7356241015a3edf3efb77a5 (patch)
tree91a8e8fa46ff2f3d4e1a2be9eeab24c41db82309 /samples/pktgen
parentiio: fix SPHINX kernel-docs build warning (diff)
downloadlinux-8ea2a63869517271f7356241015a3edf3efb77a5.tar.xz
linux-8ea2a63869517271f7356241015a3edf3efb77a5.zip
iio: adc: ina2xx: Use a monotonic clock for delay calculation
The iio timestamp clock is user selectable and may be non-monotonic. Also, only part of the acquisition time is measured, thus the delay was longer than intended. Use a monotonic timestamp to track the time for the next poll iteration. The timestamp is advanced by the sampling interval each iteration. In case the conversion overrruns the register readout (i.e. fast sampling combined with a slow bus), one or multiple samples will be dropped. Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/pktgen')
0 files changed, 0 insertions, 0 deletions