x86/cpufeature: Replace cpu_has_avx with boot_cpu_has() usage
[linux-2.6-block.git] / arch / x86 / crypto / poly1305_glue.c
index ea21d2e440f7fdb637f25213f849e9014e24af65..e32142bc071d9344533f39d2a6ee5326845b62f2 100644 (file)
@@ -183,7 +183,8 @@ static int __init poly1305_simd_mod_init(void)
                return -ENODEV;
 
 #ifdef CONFIG_AS_AVX2
-       poly1305_use_avx2 = cpu_has_avx && boot_cpu_has(X86_FEATURE_AVX2) &&
+       poly1305_use_avx2 = boot_cpu_has(X86_FEATURE_AVX) &&
+                           boot_cpu_has(X86_FEATURE_AVX2) &&
                            cpu_has_xfeatures(XFEATURE_MASK_SSE | XFEATURE_MASK_YMM, NULL);
        alg.descsize = sizeof(struct poly1305_simd_desc_ctx);
        if (poly1305_use_avx2)