diff options
author | jeff <jeff@FreeBSD.org> | 2003-06-28 08:24:42 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-06-28 08:24:42 +0000 |
commit | df569db8a679e7bfa0fa1c6792a60f149cc1e235 (patch) | |
tree | 1d20109a09a9a94150a91bbb77baa548b8673b4a /sys/kern/sched_ule.c | |
parent | c6c7b174d12ff38291e766e66f3e7e7b39ea08f8 (diff) | |
download | FreeBSD-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.
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r-- | sys/kern/sched_ule.c | 3 |
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; |