path: root/arch
diff options
authorJulian Wiedmann <jwi@linux.ibm.com>2019-04-26 09:37:41 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2019-05-08 15:01:23 +0200
commita698e1372800b7e5dde2e461c1d3948c2e06032a (patch)
tree2570ab3dd23f29f1f61a774ac7eb04e17b3aa528 /arch
parents390/qdio: use get_buf_state() in debug_get_buf_state() (diff)
s390/qdio: optimize state inspection of HW-owned SBALs
When get_buf_states() gets called with count > 1, it scans the corresponding number of SBAL states until it encounters a mismatch. But when these SBALs are in a HW-owned state, the callers don't actually care _how many_ such SBALs are on the queue. If we can't process the first SBAL, we can't process any of the following SBALs either. So when the first SBAL is HW-owned, skip the scan of the remaining SBALs and thus save some CPU time. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Reviewed-by: Jens Remus <jremus@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions