diff options
| author | Eric Biggers <[email protected]> | 2025-07-19 22:49:37 +0000 |
|---|---|---|
| committer | Eric Biggers <[email protected]> | 2025-07-21 03:52:28 +0000 |
| commit | 110628e55a577468ef21f01e042e87c4257b2fd5 (patch) | |
| tree | a5b9d5289ce5f367c9f22cb8245ac1e433ae8dec /fs/btrfs/disk-io.c | |
| parent | lib/crc: crc64: Add include/linux/crc64.h to kernel-api.rst (diff) | |
| download | kernel-110628e55a577468ef21f01e042e87c4257b2fd5.tar.gz kernel-110628e55a577468ef21f01e042e87c4257b2fd5.zip | |
lib/crc: x86: Reorganize crc-pclmul static_call initialization
Reorganize the crc-pclmul static_call initialization to place more of
the logic in the *_mod_init_arch() functions instead of in the
INIT_CRC_PCLMUL macro. This provides the flexibility to do more than a
single static_call update for each CPU feature check. Right away,
optimize crc64_mod_init_arch() to check the CPU features just once
instead of twice, doing both the crc64_msb and crc64_lsb static_call
updates together. A later commit will also use this to initialize an
additional static_key when crc32_lsb_vpclmul_avx512() is enabled.
Acked-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Eric Biggers <[email protected]>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions
