From: Ard Biesheuvel Date: Wed, 17 Sep 2025 21:28:22 +0000 (+0200) Subject: crypto/arm64: aes-ce-ccm - Avoid pointless yield of the NEON unit X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9426f3e6bd408aaf6f484b2b43eddd63c6b3f8c;p=thirdparty%2Fkernel%2Flinux.git crypto/arm64: aes-ce-ccm - Avoid pointless yield of the NEON unit Kernel mode NEON sections are now preemptible on arm64, and so there is no need to yield it explicitly in order to prevent scheduling latency spikes. Reviewed-by: Eric Biggers Acked-by: Herbert Xu Acked-by: Catalin Marinas Signed-off-by: Ard Biesheuvel --- diff --git a/arch/arm64/crypto/aes-ce-ccm-glue.c b/arch/arm64/crypto/aes-ce-ccm-glue.c index 2d791d51891b4..2eb4e76cabc3a 100644 --- a/arch/arm64/crypto/aes-ce-ccm-glue.c +++ b/arch/arm64/crypto/aes-ce-ccm-glue.c @@ -114,11 +114,8 @@ static u32 ce_aes_ccm_auth_data(u8 mac[], u8 const in[], u32 abytes, in += adv; abytes -= adv; - if (unlikely(rem)) { - kernel_neon_end(); - kernel_neon_begin(); + if (unlikely(rem)) macp = 0; - } } else { u32 l = min(AES_BLOCK_SIZE - macp, abytes);