projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/cpufeature: Replace cpu_has_avx2 with boot_cpu_has() usage
[cascardo/linux.git]
/
arch
/
x86
/
crypto
/
serpent_avx2_glue.c
diff --git
a/arch/x86/crypto/serpent_avx2_glue.c
b/arch/x86/crypto/serpent_avx2_glue.c
index
408cae2
..
870f6d8
100644
(file)
--- a/
arch/x86/crypto/serpent_avx2_glue.c
+++ b/
arch/x86/crypto/serpent_avx2_glue.c
@@
-538,7
+538,7
@@
static int __init init(void)
{
const char *feature_name;
- if (!
cpu_has_avx2
|| !boot_cpu_has(X86_FEATURE_OSXSAVE)) {
+ if (!
boot_cpu_has(X86_FEATURE_AVX2)
|| !boot_cpu_has(X86_FEATURE_OSXSAVE)) {
pr_info("AVX2 instructions are not detected.\n");
return -ENODEV;
}