linux/lib/crc
Eric Biggers b93f05df9c lib/crc: x86: Stop using cpu_has_xfeatures()
Checking both boot_cpu_has() and cpu_has_xfeatures() has never really been
needed in practice, and it's never been universally done (e.g., lib/raid/
omits cpu_has_xfeatures()).  Nevertheless, both x86 and UML now explicitly
clear the AVX and AVX-512 flags if their xfeatures are missing, which should
remove any remaining doubts.

Thus, remove all the calls to cpu_has_xfeatures().

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260901145740.42337-6-ebiggers@kernel.org
2026-09-09 14:04:40 -07:00
..
arm lib/crc: arm: Enable arm64's NEON intrinsics implementation of crc64 2026-05-28 13:14:23 -07:00
arm64 lib/crc: Turn NEON intrinsics crc64 implementation into common code 2026-05-28 13:14:22 -07:00
loongarch lib/crc: Drop inline from all *_mod_init_arch() functions 2025-08-15 19:06:08 -07:00
mips lib/crc: Drop inline from all *_mod_init_arch() functions 2025-08-15 19:06:08 -07:00
powerpc lib/crc: Drop inline from all *_mod_init_arch() functions 2025-08-15 19:06:08 -07:00
riscv lib/crc: riscv: Migrate optimized CRC code into lib/crc/ 2025-06-30 09:31:57 -07:00
s390 lib/crc: s390: Migrate optimized CRC code into lib/crc/ 2025-06-30 09:31:57 -07:00
sparc lib/crc: Drop inline from all *_mod_init_arch() functions 2025-08-15 19:06:08 -07:00
tests lib/crc: tests: Make crc_kunit test only the enabled CRC variants 2026-03-09 13:29:46 -07:00
x86 lib/crc: x86: Stop using cpu_has_xfeatures() 2026-09-09 14:04:40 -07:00
.gitignore
.kunitconfig lib/crc: tests: Add a .kunitconfig file 2026-03-09 13:29:47 -07:00
crc-ccitt.c lib/crc: Explicitly include <linux/export.h> 2025-06-30 09:31:57 -07:00
crc-itu-t.c lib/crc: Explicitly include <linux/export.h> 2025-06-30 09:31:57 -07:00
crc-t10dif-main.c lib/crc: Explicitly include <linux/export.h> 2025-06-30 09:31:57 -07:00
crc4.c lib/crc: Explicitly include <linux/export.h> 2025-06-30 09:31:57 -07:00
crc7.c lib/crc: Explicitly include <linux/export.h> 2025-06-30 09:31:57 -07:00
crc8.c lib/crc: Explicitly include <linux/export.h> 2025-06-30 09:31:57 -07:00
crc16.c lib/crc: Explicitly include <linux/export.h> 2025-06-30 09:31:57 -07:00
crc32-main.c lib/crc: Explicitly include <linux/export.h> 2025-06-30 09:31:57 -07:00
crc64-main.c lib/crc: Explicitly include <linux/export.h> 2025-06-30 09:31:57 -07:00
crc64-neon.c lib/crc: Turn NEON intrinsics crc64 implementation into common code 2026-05-28 13:14:22 -07:00
gen_crc32table.c
gen_crc64table.c
Kconfig lib/crc: arm: Enable arm64's NEON intrinsics implementation of crc64 2026-05-28 13:14:23 -07:00
Makefile lib/crc: arm: Enable arm64's NEON intrinsics implementation of crc64 2026-05-28 13:14:23 -07:00