summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2018-01-11 18:58:18 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2018-01-11 18:58:18 +0000
commit0fa15e9deee7d7499fcfc650f2c0f7f7c0f24463 (patch)
tree7f682d5579b67608f1294b342a2327d609c65061 /sys
parentd364fded0c9912f1d185ee73ed8cfe6a8ae7405c (diff)
Postpone secondary CPUs until after mounthook activities. This is
useful for loading CPU microcode from the disk before the CPUs are let go. Tested by visa@ on sgi, loongson and octeon "don't see immediate issues" kettenis@ ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/init_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index bc936626666..270761750c8 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.272 2018/01/01 08:23:19 jsg Exp $ */
+/* $OpenBSD: init_main.c,v 1.273 2018/01/11 18:58:17 patrick Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -546,13 +546,13 @@ main(void *framep)
panic("fork zerothread");
#endif
+ config_process_deferred_mountroot();
+
#if defined(MULTIPROCESSOR)
/* Boot the secondary processors. */
cpu_boot_secondary_processors();
#endif
- config_process_deferred_mountroot();
-
/*
* Okay, now we can let init(8) exec! It's off to userland!
*/