summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorAlexandr Nedvedicky <sashan@cvs.openbsd.org>2018-09-10 16:18:35 +0000
committerAlexandr Nedvedicky <sashan@cvs.openbsd.org>2018-09-10 16:18:35 +0000
commit790b3b5695b70d5800b77a2480b29f01b43145a9 (patch)
tree9095ac04b0098612b245c2f9e4349f01324e18f1 /sys/kern
parentbb16c00a2313986f3a10f155bd4c2b58cef3a99b (diff)
- if_cloners list populated at boot time only then becomes immutable,
so we can let go if_cloners_lock. OK tb@, claudio@, bluhm@, kn@, henning@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/init_main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index aa4c0a83ef7..91070090bb1 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.280 2018/08/13 15:26:17 visa Exp $ */
+/* $OpenBSD: init_main.c,v 1.281 2018/09/10 16:18:34 sashan Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -174,6 +174,9 @@ struct emul emul_native = {
sigcoderet
};
+#ifdef DIAGNOSTIC
+int pdevinit_done = 0;
+#endif
/*
* System startup; initialize the world, create process 0, mount root
@@ -401,6 +404,9 @@ main(void *framep)
for (pdev = pdevinit; pdev->pdev_attach != NULL; pdev++)
if (pdev->pdev_count > 0)
(*pdev->pdev_attach)(pdev->pdev_count);
+#ifdef DIAGNOSTIC
+ pdevinit_done = 1;
+#endif
#ifdef CRYPTO
crypto_init();