From df569db8a679e7bfa0fa1c6792a60f149cc1e235 Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 28 Jun 2003 08:24:42 +0000 Subject: - 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 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; -- cgit v1.1