x86/cpufeature: Replace cpu_has_avx2 with boot_cpu_has() usage
[cascardo/linux.git] / arch / x86 / crypto / serpent_avx2_glue.c
index 408cae2..870f6d8 100644 (file)
@@ -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;
        }