From c0d597e01626a28598119570b29186c93f3aced3 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Wed, 12 Nov 2025 10:03:18 +0100 Subject: [PATCH] lib/crypto: arm/blake2b: Move to scoped ksimd API Even though ARM's versions of kernel_neon_begin()/_end() are not being changed, update the newly migrated ARM blake2b to the scoped ksimd API so that all ARM and arm64 in lib/crypto remains consistent in this manner. Signed-off-by: Ard Biesheuvel Signed-off-by: Eric Biggers --- lib/crypto/arm/blake2b.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/crypto/arm/blake2b.h b/lib/crypto/arm/blake2b.h index 1b9154d119db4..5c76498521e67 100644 --- a/lib/crypto/arm/blake2b.h +++ b/lib/crypto/arm/blake2b.h @@ -24,9 +24,8 @@ static void blake2b_compress(struct blake2b_ctx *ctx, const size_t blocks = min_t(size_t, nblocks, SZ_4K / BLAKE2B_BLOCK_SIZE); - kernel_neon_begin(); - blake2b_compress_neon(ctx, data, blocks, inc); - kernel_neon_end(); + scoped_ksimd() + blake2b_compress_neon(ctx, data, blocks, inc); data += blocks * BLAKE2B_BLOCK_SIZE; nblocks -= blocks; -- 2.47.3