diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2020-07-30 14:39:13 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-08-19 13:59:43 +0200 |
commit | 1dbb920e342cab987186ad8ed6eac9c1cf710db7 (patch) | |
tree | 63c7ffba3228c439f8beb778ed5abcc5e2d634e1 /include/crypto | |
parent | Linux 5.9-rc1 (diff) | |
download | linux-1dbb920e342cab987186ad8ed6eac9c1cf710db7.tar.xz linux-1dbb920e342cab987186ad8ed6eac9c1cf710db7.zip |
crypto: algapi - Move crypto_yield into internal.h
This patch moves crypto_yield into internal.h as it's only used
by internal code such as skcipher. It also adds a missing inclusion
of sched.h which is required for cond_resched.
The header files in internal.h have been cleaned up to remove some
ancient junk and add some more specific inclusions.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/algapi.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h index 143d884d65c7..99fcb2d7a831 100644 --- a/include/crypto/algapi.h +++ b/include/crypto/algapi.h @@ -277,12 +277,6 @@ static inline int crypto_memneq(const void *a, const void *b, size_t size) return __crypto_memneq(a, b, size) != 0UL ? 1 : 0; } -static inline void crypto_yield(u32 flags) -{ - if (flags & CRYPTO_TFM_REQ_MAY_SLEEP) - cond_resched(); -} - int crypto_register_notifier(struct notifier_block *nb); int crypto_unregister_notifier(struct notifier_block *nb); |