Revert "crypto: run initcalls for generic implementations earlier"

This reverts commit c4741b2305.

Crypto API self-tests no longer run at registration time and now
occur either at late_initcall or upon the first use.

Therefore the premise of the above commit no longer exists.  Revert
it and subsequent additions of subsys_initcall and arch_initcall.

Note that lib/crypto calls will stay at subsys_initcall (or rather
downgraded from arch_initcall) because they may need to occur
before Crypto API registration.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Herbert Xu
2025-04-30 16:17:02 +08:00
parent 89490e6b80
commit ef93f15628
92 changed files with 92 additions and 98 deletions

View File

@@ -117,7 +117,7 @@ static int __init poly1305_simd_mod_init(void)
static_branch_enable(&poly1305_use_avx512);
return 0;
}
arch_initcall(poly1305_simd_mod_init);
subsys_initcall(poly1305_simd_mod_init);
static void __exit poly1305_simd_mod_exit(void)
{