author: Sebastian Andrzej Siewior <bigeasy@linutronix.de> 2021-09-28 13:54:01 +0200
committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:39 +0800
commit: ac283e9bce158344a6128c8422e5ca3b8937e837
parent: cc36b0f4e7d01694b64d806212d1890d6182c704
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 70f69f0910c9..58eee8eab4bf 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -1061,14 +1061,14 @@ static void generate_random_testvec_config(struct testvec_config *cfg,
static void crypto_disable_simd_for_test(void)
{
- preempt_disable();
+ migrate_disable();
__this_cpu_write(crypto_simd_disabled_for_test, true);
}
static void crypto_reenable_simd_for_test(void)
{
__this_cpu_write(crypto_simd_disabled_for_test, false);
- preempt_enable();
+ migrate_enable();
}
/*