X-Git-Url: http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=blobdiff_plain;f=crypto%2Finternal.h;h=5ed383f7dce6f17c5b534bbd1cd6d95efb34feaa;hp=e68e43886d3cc23439f30210e88b517911bf395e;hb=40725181b74be6b0e3bdc8c05bd1e0b9873ec5cc;hpb=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 diff --git a/crypto/internal.h b/crypto/internal.h index e68e438..5ed383f 100644 --- a/crypto/internal.h +++ b/crypto/internal.h @@ -38,15 +38,10 @@ static inline void crypto_kunmap(void *vaddr, int out) static inline void crypto_yield(struct crypto_tfm *tfm) { - if (!in_softirq()) + if (!in_atomic()) cond_resched(); } -static inline void *crypto_tfm_ctx(struct crypto_tfm *tfm) -{ - return (void *)&tfm[1]; -} - struct crypto_alg *crypto_alg_lookup(const char *name); /* A far more intelligent version of this is planned. For now, just