crypto: caam/qi2 - relax busy polling while enqueuing FDs

Add cpu_relax() in the loop that tries to enqueue the FDs.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Horia Geantă 2019-02-11 13:46:14 +02:00 committed by Herbert Xu
parent f1657eb99e
commit 05bd1beec2

View File

@ -5277,6 +5277,8 @@ int dpaa2_caam_enqueue(struct device *dev, struct caam_request *req)
&fd);
if (err != -EBUSY)
break;
cpu_relax();
}
if (unlikely(err)) {