aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2015-10-27 16:59:17 +0000
committerGreg Kroah-Hartman <[email protected]>2015-10-29 08:58:36 +0900
commit66d4da800d1a70e7c6b27ba7a61e4bc39b1f3304 (patch)
tree6353bd16d773801bccb84790209b8bee2067b3f2 /tools/perf/scripts/python
parent21ec1bf73483f1cceb252ecf9323160fc9473f7b (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 <[email protected]> Reviewed-by: H Hartley Sweeten <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions