x86/cpufeature: Remove cpu_has_osxsave
[linux-2.6-block.git] / arch / x86 / include / asm / xor_avx.h
index 7c0a517ec7511a667166c216df8357087ff3e7b0..e45e556140af9a952bb105c0a7b70cf4b9d4b60a 100644 (file)
@@ -167,12 +167,12 @@ static struct xor_block_template xor_block_avx = {
 
 #define AVX_XOR_SPEED \
 do { \
-       if (cpu_has_avx && cpu_has_osxsave) \
+       if (cpu_has_avx && boot_cpu_has(X86_FEATURE_OSXSAVE)) \
                xor_speed(&xor_block_avx); \
 } while (0)
 
 #define AVX_SELECT(FASTEST) \
-       (cpu_has_avx && cpu_has_osxsave ? &xor_block_avx : FASTEST)
+       (cpu_has_avx && boot_cpu_has(X86_FEATURE_OSXSAVE) ? &xor_block_avx : FASTEST)
 
 #else