s390/zcrypt: get rid of ap_poll_requests
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 21 Sep 2016 12:12:53 +0000 (14:12 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Dec 2016 15:33:38 +0000 (16:33 +0100)
commit9af3e04ee41e6841b2accb9dc96562bcf4e59916
tree96bedbba070cc7d46a1470b1de0248bd3447a9b5
parent0db78559f965a2e652dbe8acf35333f2081bf872
s390/zcrypt: get rid of ap_poll_requests

The poll thread of the AP bus is burning CPU while waiting for
crypto requests to complete. We can as well burn a few more cycles
in the poll thread to check if there are pending requests and
remove the atomic operations with the ap_poll_requests.
This improves the code if the machine has adapter interrupts.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c