summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/init_main.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 14afa2af599..34beffbe642 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.170 2010/07/26 01:56:27 guenther Exp $ */
+/* $OpenBSD: init_main.c,v 1.171 2010/09/08 14:15:56 jsing Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -140,7 +140,7 @@ void start_init(void *);
void start_cleaner(void *);
void start_update(void *);
void start_reaper(void *);
-void init_crypto(void);
+void crypto_init(void);
void init_exec(void);
void kqueue_init(void);
void workq_init(void);
@@ -387,6 +387,7 @@ main(void *framep)
(*pdev->pdev_attach)(pdev->pdev_count);
#ifdef CRYPTO
+ crypto_init();
swcr_init();
#endif /* CRYPTO */
@@ -524,11 +525,6 @@ main(void *framep)
if (kthread_create(uvm_aiodone_daemon, NULL, NULL, "aiodoned"))
panic("fork aiodoned");
-#ifdef CRYPTO
- /* Create the crypto kernel thread. */
- init_crypto();
-#endif /* CRYPTO */
-
microtime(&rtv);
srandom((u_int32_t)(rtv.tv_sec ^ rtv.tv_usec) ^ arc4random());