summaryrefslogtreecommitdiffstats
path: root/arch/x86/crypto/curve25519-x86_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/crypto/curve25519-x86_64.c')
-rw-r--r--arch/x86/crypto/curve25519-x86_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/crypto/curve25519-x86_64.c b/arch/x86/crypto/curve25519-x86_64.c
index 6706b6cb1d0f..38caf61cd5b7 100644
--- a/arch/x86/crypto/curve25519-x86_64.c
+++ b/arch/x86/crypto/curve25519-x86_64.c
@@ -1500,7 +1500,7 @@ static int __init curve25519_mod_init(void)
static void __exit curve25519_mod_exit(void)
{
if (IS_REACHABLE(CONFIG_CRYPTO_KPP) &&
- (boot_cpu_has(X86_FEATURE_BMI2) || boot_cpu_has(X86_FEATURE_ADX)))
+ static_branch_likely(&curve25519_use_bmi2_adx))
crypto_unregister_kpp(&curve25519_alg);
}