diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-31 21:28:00 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-31 21:36:16 +0200 |
commit | cb5c7f30091887bef8cd972be7e1eb06ab765235 (patch) | |
tree | d58035775f89353aaeff78db522e4f879bc3e23d | |
parent | d0f7d79312e5cbb8cac41a8181b4ab2f15749362 (diff) |
blake2s: do not use xgetbv for ssse3 detection
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/crypto/zinc/blake2s/blake2s-x86_64-glue.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/crypto/zinc/blake2s/blake2s-x86_64-glue.c b/src/crypto/zinc/blake2s/blake2s-x86_64-glue.c index 087a48d..1d10058 100644 --- a/src/crypto/zinc/blake2s/blake2s-x86_64-glue.c +++ b/src/crypto/zinc/blake2s/blake2s-x86_64-glue.c @@ -21,9 +21,7 @@ static bool *const blake2s_nobs[] __initconst = { &blake2s_use_avx512 }; static void __init blake2s_fpu_init(void) { - blake2s_use_ssse3 = - boot_cpu_has(X86_FEATURE_SSSE3) && - cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL); + blake2s_use_ssse3 = boot_cpu_has(X86_FEATURE_SSSE3); #ifndef COMPAT_CANNOT_USE_AVX512 blake2s_use_avx512 = boot_cpu_has(X86_FEATURE_AVX) && |