projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1657eb
)
crypto: caam/qi2 - relax busy polling while enqueuing FDs
author
Horia Geantă
<horia.geanta@nxp.com>
Mon, 11 Feb 2019 11:46:14 +0000
(13:46 +0200)
committer
Herbert 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
patch
|
blob
|
history
diff --git
a/drivers/crypto/caam/caamalg_qi2.c
b/drivers/crypto/caam/caamalg_qi2.c
index 6a6a508f5fd201be7c2f5f45ac334fc29e8498a1..c2c1abc68f81ef241351ab696a5d6c95e03906f6 100644
(file)
--- 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)) {