crypto: api - Move crypto_yield() to algapi.h

It makes no sense for crypto_yield() to be defined in scatterwalk.h ,
move it into algapi.h as it's an internal function to crypto API.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Marek Vasut
2014-05-26 15:32:05 +02:00
committed by Herbert Xu
parent 7171511eae
commit bb55a4c100
2 changed files with 6 additions and 6 deletions

View File

@@ -25,12 +25,6 @@
#include <linux/scatterlist.h>
#include <linux/sched.h>
static inline void crypto_yield(u32 flags)
{
if (flags & CRYPTO_TFM_REQ_MAY_SLEEP)
cond_resched();
}
static inline void scatterwalk_sg_chain(struct scatterlist *sg1, int num,
struct scatterlist *sg2)
{