]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: arm64/aes-blk - revert NEON yield for skciphers
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 10 Sep 2018 14:41:13 +0000 (16:41 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Sep 2018 05:24:50 +0000 (13:24 +0800)
commit1bcdd604b66d2bd5588e4e80fe4ba6a5a3e0249e
tree371f1a20fef0e1655ddd9aab3db75e241dfea71e
parentc4c158978c21a107f3bf100e655b01e4f1d56eec
crypto: arm64/aes-blk - revert NEON yield for skciphers

The reasoning of commit 685f06aa057d ("crypto: arm64 - revert NEON yield
for fast AEAD implementations") applies equally to skciphers: the walk
API already guarantees that the input size of each call into the NEON
code is bounded to the size of a page, and so there is no need for an
additional TIF_NEED_RESCHED flag check inside the inner loop. So revert
the skcipher changes to aes-modes.S (but retain the mac ones)

This partially reverts commit 77324de76274dd869070a0c42dbf7f6f3ead38a3.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/aes-modes.S