diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2015-10-27 16:59:17 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-29 08:58:36 +0900 |
commit | 66d4da800d1a70e7c6b27ba7a61e4bc39b1f3304 (patch) | |
tree | 6353bd16d773801bccb84790209b8bee2067b3f2 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 21ec1bf73483f1cceb252ecf9323160fc9473f7b (diff) |
staging: comedi: comedi_test: simplify time since last AI scan
The private data structure `struct waveform_private` currently uses
member `last` to remember the time of the last timer interrupt, and the
member `usec_remainder` to keep track of how far into a simulated scan
the interrupt occurred. Replace these with a single new member
`ai_last_scan_time` that records the time of the last scan. This
simplifies the calculation of the number of scans to simulate in the
timer routine, `waveform_ai_interrupt()`.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions