diff options
author | Horia Geantă <horia.geanta@nxp.com> | 2019-02-11 12:46:14 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-02-22 05:47:26 +0100 |
commit | 05bd1beec2748d74cbc41ee476be2af0f91bd2d3 (patch) | |
tree | 77a1a0ce44ae386a5c9be0ef6bf77599849c25f9 /drivers/crypto/caam | |
parent | crypto: caam/qi2 - rate-limit enqueue failure prints (diff) | |
download | linux-05bd1beec2748d74cbc41ee476be2af0f91bd2d3.tar.xz linux-05bd1beec2748d74cbc41ee476be2af0f91bd2d3.zip |
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>
Diffstat (limited to 'drivers/crypto/caam')
-rw-r--r-- | drivers/crypto/caam/caamalg_qi2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/caam/caamalg_qi2.c b/drivers/crypto/caam/caamalg_qi2.c index 6a6a508f5fd2..c2c1abc68f81 100644 --- a/drivers/crypto/caam/caamalg_qi2.c +++ b/drivers/crypto/caam/caamalg_qi2.c @@ -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)) { |