aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/internal.h b/crypto/internal.h
index e68e43886d3c..964b9a60ca24 100644
--- a/crypto/internal.h
+++ b/crypto/internal.h
@@ -38,7 +38,7 @@ static inline void crypto_kunmap(void *vaddr, int out)
38 38
39static inline void crypto_yield(struct crypto_tfm *tfm) 39static inline void crypto_yield(struct crypto_tfm *tfm)
40{ 40{
41 if (!in_softirq()) 41 if (!in_atomic())
42 cond_resched(); 42 cond_resched();
43} 43}
44 44