diff options
| author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-11-10 17:28:23 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-26 15:31:45 -0800 |
| commit | b6bc224f33b2d2f537f6605f88542ac16dfbc192 (patch) | |
| tree | 9227319b78dca5eee75275dea22dad69efcda9d9 /tools/perf/scripts/python/syscall-counts.py | |
| parent | f6266a41d820feaa7b7febe122b285e336e40bfd (diff) | |
staging: comedi: adl_pci9111: use comedi_async 'scans_done' to detect EOA
The comedi core now counts the number of samples added to the async buffer and
detects the end-of-scan and increments the comedi_async 'scans_done' counter.
Remove the private data member 'stop_counter' and use the 'scans_done' member
to detect the end-of-acquisition.
This fixes a possible interger overflow when calculating the value of the
'stop_counter' and removes the need to accumulate the 'total' number of
samples added to the async buffer in pci9111_handle_fifo_half_full().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
