crypto: api - Optimise away crypto_yield when hard preemption is on
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 12 Jul 2016 05:17:56 +0000 (13:17 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 18 Jul 2016 09:35:49 +0000 (17:35 +0800)
commit4140139734459db4dffc50dad7b9e21ed79a8dd9
tree10195cc22c1bf1c10216a1d1abcf2fe05169c96f
parent85eccddee401ae81067e763516889780b5545160
crypto: api - Optimise away crypto_yield when hard preemption is on

When hard preemption is enabled there is no need to explicitly
call crypto_yield.  This patch eliminates it if that is the case.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/algapi.h