patch-5.15.79-rt54.patch
[platform/kernel/linux-rpi.git] / crypto / testmgr.c
index 163a128..444183f 100644 (file)
@@ -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();
 }
 
 /*