aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorH Hartley Sweeten <[email protected]>2014-11-04 10:54:33 -0700
committerGreg Kroah-Hartman <[email protected]>2014-11-07 09:34:01 -0800
commit89e9057b50369474c1e701faccdeedf08566ec57 (patch)
tree1d6252ff29084eb7438e8391d197813ed13b2d8f /tools/perf/scripts/python/event_analyzing_sample.py
parent22f75dac46e0691ef03e44d27d21d2b860cc15fe (diff)
staging: comedi: addi_apci_3120: fix apci3120_ai_insn_read()
Now that the scanning and interrupt support have been removed from this function it can be refactored to work correctly. The comedi core expects (*insn_read) functions to read insn->n values from the hardware and return the number of samples read. This function currently just reads one sample but it returns insn->n. Fix this function to work like the core expects. Use comedi_timeout() to prevent a possible deadlock in the loop that waits for the end-of-conversion. Signed-off-by: H Hartley Sweeten <[email protected]> Reviewed-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions