crypto: arm64/sha512-ce - simplify NEON yield
authorArd Biesheuvel <ardb@kernel.org>
Wed, 3 Feb 2021 11:36:22 +0000 (12:36 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 10 Feb 2021 06:55:58 +0000 (17:55 +1100)
commit5f6cb2e6176815cf631593eb7a94a2725d8528e5
tree375a8d4045525db0cb20aa39771e31621c7b46f1
parent9ecc9f31d0a43d538d80f51debfb25d75da44892
crypto: arm64/sha512-ce - simplify NEON yield

Instead of calling into kernel_neon_end() and kernel_neon_begin() (and
potentially into schedule()) from the assembler code when running in
task mode and a reschedule is pending, perform only the preempt count
check in assembler, but simply return early in this case, and let the C
code deal with the consequences.

This reverts commit 6caf7adc5e458f77f550b6c6ca8effa152d61b4a.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/sha512-ce-core.S
arch/arm64/crypto/sha512-ce-glue.c