aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-31 21:28:00 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-31 21:36:16 +0200
commit2030957975ba054321917fc40a2017f0adee4863 (patch)
tree14fbf0faa587140f326a8ec81d44a9fbea4ab396 /src/crypto
parenttools: pass WG_ENDPOINT_RESOLUTION_RETRIES=infinity to systemd unit (diff)
downloadwireguard-monolithic-historical-2030957975ba054321917fc40a2017f0adee4863.tar.xz
wireguard-monolithic-historical-2030957975ba054321917fc40a2017f0adee4863.zip
blake2s: do not use xgetbv for ssse3 detection
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/zinc/blake2s/blake2s-x86_64-glue.c4
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) &&