Skip to contentSkip to conversation

api: Feed flag directly to crypto_yield

CRYPTO Jeff Garzik 1 participant 1 message Sep 22, 2006 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · Linux Kernel Mailing List
crypto/internal.h +0 -0
index b110b97..7dc04ef 100644

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 *v
 	kunmap_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