crypto: caam/qi2 - relax busy polling while enqueuing FDs
authorHoria Geantă <horia.geanta@nxp.com>
Mon, 11 Feb 2019 11:46:14 +0000 (13:46 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Feb 2019 04:47:26 +0000 (12:47 +0800)
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>
drivers/crypto/caam/caamalg_qi2.c

index 6a6a508..c2c1abc 100644 (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)) {