]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: arm64/chacha20 - take may_use_simd() into account
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 24 Jul 2017 10:28:14 +0000 (11:28 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Aug 2017 01:27:22 +0000 (09:27 +0800)
commitea822a7b4ce9075fc4b6655186ba69e88807a805
treead249afec60f0407b096c6278367c3aca3426ab8
parent21f141b13897758810c57c81815dc1d6ddc395fe
crypto: arm64/chacha20 - take may_use_simd() into account

To accommodate systems that disallow the use of kernel mode NEON in
some circumstances, take the return value of may_use_simd into
account when deciding whether to invoke the C fallback routine.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/chacha20-neon-glue.c