Skip to content
Snippets Groups Projects
Commit 05bd1bee authored by Horia Geantă's avatar Horia Geantă Committed by Herbert Xu
Browse files

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


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

Signed-off-by: default avatarHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f1657eb9
Branches
No related tags found
No related merge requests found
...@@ -5277,6 +5277,8 @@ int dpaa2_caam_enqueue(struct device *dev, struct caam_request *req) ...@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment