From: Horia Geantă Date: Mon, 11 Feb 2019 11:46:14 +0000 (+0200) Subject: crypto: caam/qi2 - relax busy polling while enqueuing FDs X-Git-Tag: v5.1-rc1~177^2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05bd1beec2748d74cbc41ee476be2af0f91bd2d3;p=thirdparty%2Fkernel%2Flinux.git 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ă Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/caam/caamalg_qi2.c b/drivers/crypto/caam/caamalg_qi2.c index 6a6a508f5fd20..c2c1abc68f81e 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)) {