diff options
author | 2019-05-26 20:38:30 +0200 | |
---|---|---|
committer | 2019-05-29 01:23:24 +0200 | |
commit | fbb8035a46a84ac7c5ee53c875c1de6f202d0884 (patch) | |
tree | c45fdaa63f7203e15a5ede93b2441427cffd5f9c /src/crypto/zinc/poly1305/poly1305-arm-glue.c | |
parent | kbuild: account for recent upstream changes (diff) | |
download | wireguard-monolithic-historical-fbb8035a46a84ac7c5ee53c875c1de6f202d0884.tar.xz wireguard-monolithic-historical-fbb8035a46a84ac7c5ee53c875c1de6f202d0884.zip |
zinc: arm64: use cpu_get_elf_hwcap accessor for 5.2
Diffstat (limited to '')
-rw-r--r-- | src/crypto/zinc/poly1305/poly1305-arm-glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/zinc/poly1305/poly1305-arm-glue.c b/src/crypto/zinc/poly1305/poly1305-arm-glue.c index a80f046..291fe4b 100644 --- a/src/crypto/zinc/poly1305/poly1305-arm-glue.c +++ b/src/crypto/zinc/poly1305/poly1305-arm-glue.c @@ -20,7 +20,7 @@ static bool *const poly1305_nobs[] __initconst = { &poly1305_use_neon }; static void __init poly1305_fpu_init(void) { #if defined(CONFIG_ZINC_ARCH_ARM64) - poly1305_use_neon = elf_hwcap & HWCAP_ASIMD; + poly1305_use_neon = cpu_have_named_feature(ASIMD); #elif defined(CONFIG_ZINC_ARCH_ARM) poly1305_use_neon = elf_hwcap & HWCAP_NEON; #endif |