x86/cpufeature: Remove cpu_has_osxsave
[linux-2.6-block.git] / arch / x86 / crypto / camellia_aesni_avx2_glue.c
index d844569245633845da1fe485dca9c44043be680f..c37f7028c85ae5d0d232e6410651ee80a6c91d41 100644 (file)
@@ -562,7 +562,8 @@ static int __init camellia_aesni_init(void)
 {
        const char *feature_name;
 
-       if (!cpu_has_avx2 || !cpu_has_avx || !cpu_has_aes || !cpu_has_osxsave) {
+       if (!cpu_has_avx2 || !cpu_has_avx || !cpu_has_aes ||
+           !boot_cpu_has(X86_FEATURE_OSXSAVE)) {
                pr_info("AVX2 or AES-NI instructions are not detected.\n");
                return -ENODEV;
        }