s390/zcrypt: use msleep() instead of mdelay()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 17 Aug 2015 05:59:47 +0000 (07:59 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 19 Aug 2015 08:40:26 +0000 (10:40 +0200)
commite4e1899aaec0370aea6b98597ee6289d60544ae2
treea25d5c833d1f0d00a5ab87e2c50c205ee11e765e
parente619cd3d618672bea8602d682ea63b42a1faf1bc
s390/zcrypt: use msleep() instead of mdelay()

There is no need to busy loop and monopolize a cpu for up to ~2 seconds.
The code in question that calls mdelay() is preemptible anyway, so better
let the kernel schedule different processes than just looping and causing
unnecessary delays.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c
drivers/s390/crypto/zcrypt_pcixcc.c