summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-06-28 08:24:42 +0000
committerjeff <jeff@FreeBSD.org>2003-06-28 08:24:42 +0000
commitdf569db8a679e7bfa0fa1c6792a60f149cc1e235 (patch)
tree1d20109a09a9a94150a91bbb77baa548b8673b4a
parentc6c7b174d12ff38291e766e66f3e7e7b39ea08f8 (diff)
downloadFreeBSD-src-df569db8a679e7bfa0fa1c6792a60f149cc1e235.zip
FreeBSD-src-df569db8a679e7bfa0fa1c6792a60f149cc1e235.tar.gz
- If smp is not started yet don't try to load balance or we'll put threads
on cpus that aren't running yet.
-rw-r--r--sys/kern/sched_ule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 622ed15..0ba77cc 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -374,6 +374,9 @@ kseq_balance(void *arg)
low_load = -1;
mtx_lock_spin(&sched_lock);
+ if (smp_started == 0)
+ goto out;
+
for (i = 0; i < mp_maxid; i++) {
if (CPU_ABSENT(i))
continue;
OpenPOWER on IntegriCloud