aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-sqlite-report
diff options
context:
space:
mode:
authorStefan Brüns <[email protected]>2018-01-01 02:24:42 +0100
committerGreg Kroah-Hartman <[email protected]>2018-01-08 16:03:42 +0100
commit8ea2a63869517271f7356241015a3edf3efb77a5 (patch)
tree91a8e8fa46ff2f3d4e1a2be9eeab24c41db82309 /tools/perf/scripts/python/bin/export-to-sqlite-report
parent08e2e51f9acf9d2ab0437721aed71de53bd334e6 (diff)
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 <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-report')
0 files changed, 0 insertions, 0 deletions