arm64/lib: Handle CRC-32 alternative in C code
authorArd Biesheuvel <ardb@kernel.org>
Fri, 18 Oct 2024 07:53:49 +0000 (09:53 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 22 Oct 2024 10:54:43 +0000 (11:54 +0100)
commitfc7454107d1b7c27bb98d3b109e5f44a8a46d7f8
treeb128aa2bd94266c5d17634e3ba028144c7b6dc17
parent9852d85ec9d492ebef56dc5f229416c925758edc
arm64/lib: Handle CRC-32 alternative in C code

In preparation for adding another code path for performing CRC-32, move
the alternative patching for ARM64_HAS_CRC32 into C code. The logic for
deciding whether to use this new code path will be implemented in C too.

Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20241018075347.2821102-6-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/lib/Makefile
arch/arm64/lib/crc32-glue.c [new file with mode: 0644]
arch/arm64/lib/crc32.S