mirror of
https://github.com/torvalds/linux.git
synced 2025-12-01 07:26:02 +07:00
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:
@@ -247,13 +247,7 @@ static void __exit cryptomgr_exit(void)
|
||||
BUG_ON(err);
|
||||
}
|
||||
|
||||
/*
|
||||
* This is arch_initcall() so that the crypto self-tests are run on algorithms
|
||||
* registered early by subsys_initcall(). subsys_initcall() is needed for
|
||||
* generic implementations so that they're available for comparison tests when
|
||||
* other implementations are registered later by module_init().
|
||||
*/
|
||||
arch_initcall(cryptomgr_init);
|
||||
module_init(cryptomgr_init);
|
||||
module_exit(cryptomgr_exit);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
Reference in New Issue
Block a user