summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>2017-12-06 08:53:33 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-03-26 16:12:25 +0200
commit152485bf76907ac7a2cc0a63b0822b23ef25da56 (patch)
treee4ea6117a3466c3b0dd253be6a9b6d8796ab9a67 /tools/perf/scripts/python/export-to-postgresql.py
parentbcbd41da3b0a8a3e0f8457bb545a32f5ca3c81f5 (diff)
s390/qdio: simplify math in get_*_buffer_frontier()
When determining the buffer count that get_buf_states() should be queried for, 'count' is capped at 127 buffers. So the check q->first_to_check == (q->first_to_check + count) % 128 can be reduced to count == 0 This helps to emphasize that get_buf_states() is really only called with count > 0. Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com> Reviewed-by: Benjamin Block <bblock@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions