Commit 8f21cf0d2bae04ece761595036c9da8328b279aa
1 parent
6d7d684d63
Exists in
master
and in
7 other branches
[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>
Showing 3 changed files with 4 additions and 4 deletions Side-by-side Diff
crypto/cipher.c
crypto/digest.c
crypto/internal.h
... | ... | @@ -67,9 +67,9 @@ |
67 | 67 | kunmap_atomic(vaddr, crypto_kmap_type(out)); |
68 | 68 | } |
69 | 69 | |
70 | -static inline void crypto_yield(struct crypto_tfm *tfm) | |
70 | +static inline void crypto_yield(u32 flags) | |
71 | 71 | { |
72 | - if (tfm->crt_flags & CRYPTO_TFM_REQ_MAY_SLEEP) | |
72 | + if (flags & CRYPTO_TFM_REQ_MAY_SLEEP) | |
73 | 73 | cond_resched(); |
74 | 74 | } |
75 | 75 |