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
1 changed files with 2 additions and 0 deletions

View File

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