]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: arm/chacha20 - limit the preemption-disabled section
authorEric Biggers <ebiggers@google.com>
Sat, 17 Nov 2018 01:26:23 +0000 (17:26 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Nov 2018 06:26:56 +0000 (14:26 +0800)
commit8876d0d7ec63ecff1bcb1417a32075490ec63d98
tree67c73b7ecd50df0b5a33fcb5d62fd899c47e20c0
parent09662201908cf4fd55fc1ffc2269e27aee3fd26c
crypto: arm/chacha20 - limit the preemption-disabled section

To improve responsivesess, disable preemption for each step of the walk
(which is at most PAGE_SIZE) rather than for the entire
encryption/decryption operation.

Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/chacha20-neon-glue.c