diff options
author | jhb <jhb@FreeBSD.org> | 2003-10-30 21:44:01 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-10-30 21:44:01 +0000 |
commit | 0a3e524af31f1c9f23611c435bcfbe91a53d6c0b (patch) | |
tree | 716a915477cd7a3bb058ad2ee044f46dc65f2bb9 /sys | |
parent | 631c81dbef2e7e8341e7472034763d7aad075820 (diff) | |
download | FreeBSD-src-0a3e524af31f1c9f23611c435bcfbe91a53d6c0b.zip FreeBSD-src-0a3e524af31f1c9f23611c435bcfbe91a53d6c0b.tar.gz |
Ensure that mp_ncpus is set to 1 if mp_cpu_probe() fails.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_smp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index 686a80f..5bb0289 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -112,8 +112,10 @@ mp_start(void *dummy) { /* Probe for MP hardware. */ - if (mp_probe_status == 0 || smp_disabled != 0) + if (mp_probe_status == 0 || smp_disabled != 0) { + mp_ncpus = 1; return; + } mtx_init(&smp_rv_mtx, "smp rendezvous", NULL, MTX_SPIN); cpu_mp_start(); |