summaryrefslogtreecommitdiff
path: root/arch/s390/mm
diff options
context:
space:
mode:
authorHarald Freudenberger <freude@linux.ibm.com>2020-09-09 12:02:46 +0200
committerVasily Gorbik <gor@linux.ibm.com>2020-09-14 11:34:20 +0200
commit0d574ad33e5b70383b4cee81024fcb8763aac591 (patch)
treeb3362e212130465a42a3cbdb8e8af4a48e03db03 /arch/s390/mm
parent180a4c42e541cabe478c3f6e6c986a6b61744407 (diff)
s390/zcrypt: simplify cca_findcard2 loop code
Instead of two times go through the list of available AP devices (which may be up to 256 * 256 entries) this patch reworks the code do only run through once. The price is instead of reporting all possible devices to the caller only the first 256 devices are collected. However, having to choose from 256 AP devices is plenty of resources and should fulfill the caller's requirements. On the other side the loop code is much simplier and more easy to maintain. Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/mm')
0 files changed, 0 insertions, 0 deletions