summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason King <jason.king@joyent.com>2018-07-16 18:37:54 +0000
committerJason King <jason.king@joyent.com>2018-08-07 15:03:23 +0000
commit3dfd3a2b64592905be8e7bd6d229e0f7d077ed54 (patch)
tree6b7cdbc2356a75d526cbdff57a2371a4a4f169d3
parentf0b3b67f761907245b3481378958b1ad9cd1a130 (diff)
downloadillumos-joyent-3dfd3a2b64592905be8e7bd6d229e0f7d077ed54.tar.gz
OS-7079 mp_startup_common races itself
Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Approved by: Patrick Mooney <patrick.mooney@joyent.com>
-rw-r--r--usr/src/uts/i86pc/os/mp_startup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/i86pc/os/mp_startup.c b/usr/src/uts/i86pc/os/mp_startup.c
index a881ddc3c5..fef8f2759d 100644
--- a/usr/src/uts/i86pc/os/mp_startup.c
+++ b/usr/src/uts/i86pc/os/mp_startup.c
@@ -1900,6 +1900,8 @@ mp_startup_common(boolean_t boot)
if (boothowto & RB_DEBUG)
kdi_cpu_init();
+ (void) mach_cpu_create_device_node(cp, NULL);
+
/*
* Setting the bit in cpu_ready_set must be the last operation in
* processor initialization; the boot CPU will continue to boot once
@@ -1907,8 +1909,6 @@ mp_startup_common(boolean_t boot)
*/
CPUSET_ATOMIC_ADD(cpu_ready_set, cp->cpu_id);
- (void) mach_cpu_create_device_node(cp, NULL);
-
cmn_err(CE_CONT, "?cpu%d: %s\n", cp->cpu_id, cp->cpu_idstr);
cmn_err(CE_CONT, "?cpu%d: %s\n", cp->cpu_id, cp->cpu_brandstr);
cmn_err(CE_CONT, "?cpu%d initialization complete - online\n",