* Re: [CRYPTO] api: Feed flag directly to crypto_yield
[not found] <200609222104.k8ML4JE4025619@hera.kernel.org>
@ 2006-09-22 22:16 ` Jeff Garzik
0 siblings, 0 replies; only message in thread
From: Jeff Garzik @ 2006-09-22 22:16 UTC (permalink / raw)
To: Herbert Xu; +Cc: Netdev List
Linux Kernel Mailing List wrote:
> diff --git a/crypto/internal.h b/crypto/internal.h
> index b110b97..7dc04ef 100644
> --- a/crypto/internal.h
> +++ b/crypto/internal.h
> @@ -67,9 +67,9 @@ static inline void crypto_kunmap(void *v
> 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();
> }
I would add "else cpu_relax()"
Jeff
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-22 22:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200609222104.k8ML4JE4025619@hera.kernel.org>
2006-09-22 22:16 ` [CRYPTO] api: Feed flag directly to crypto_yield Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).