diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-07-30 11:53:45 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-21 11:41:50 +1000 |
commit | 32c6be5311046570e4163e34421c6e63a7a10afd (patch) | |
tree | 9bd87e83ddfc49dedc6defa5463ab259303d3494 /crypto/internal.h | |
parent | c8af672a12f9ea7b28815e30a8a24142d529c5ba (diff) | |
download | linux-crypto-32c6be5311046570e4163e34421c6e63a7a10afd.tar.gz linux-crypto-32c6be5311046570e4163e34421c6e63a7a10afd.zip |
[CRYPTO] api: Feed flag directly to crypto_yield
The sleeping flag used to determine whether crypto_yield can actually
yield is really a per-operation flag rather than a per-tfm flag. This
patch changes crypto_yield to take a flag directly so that we can start
using a per-operation flag instead the tfm flag.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/internal.h b/crypto/internal.h index b110b979..7dc04efb 100644 --- a/crypto/internal.h +++ b/crypto/internal.h @@ -67,9 +67,9 @@ static inline void crypto_kunmap(void *vaddr, int out) 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(); } |