api: Feed flag directly to crypto_yield
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Linux Kernel Mailing List
crypto/internal.h +0
-0
crypto/internal.h static inline void crypto_kunmap(void *v · line 74
Quoted 10 lines
crypto/internal.h +2
-2@@ -67,9 +67,9 @@ static inline void crypto_kunmap(void *vkunmap_atomic (vaddr,crypto_kmap_type (out)); } -static inline void crypto_yield (struct crypto_tfm *tfm) +static inline void crypto_yield (u32 flags) { -if (tfm->crt_flags &CRYPTO_TFM_REQ_MAY_SLEEP ) +if (flags &CRYPTO_TFM_REQ_MAY_SLEEP )cond_resched (); }
I would add "else cpu_relax()"
Jeff