From 2ead0e377a966e365d1f5e0c3b7d770f187b9563 Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 28 Jun 2003 08:24:42 +0000 Subject: [PATCH] - If smp is not started yet don't try to load balance or we'll put threads on cpus that aren't running yet. --- sys/kern/sched_ule.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 622ed15195d1..0ba77ccd4f01 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;