mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 22:33:39 +00:00
- If smp is not started yet don't try to load balance or we'll put threads
on cpus that aren't running yet.
This commit is contained in:
parent
418228df24
commit
86f8ae9663
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116962
|
@ -374,6 +374,9 @@ kseq_balance(void *arg)
|
||||||
low_load = -1;
|
low_load = -1;
|
||||||
|
|
||||||
mtx_lock_spin(&sched_lock);
|
mtx_lock_spin(&sched_lock);
|
||||||
|
if (smp_started == 0)
|
||||||
|
goto out;
|
||||||
|
|
||||||
for (i = 0; i < mp_maxid; i++) {
|
for (i = 0; i < mp_maxid; i++) {
|
||||||
if (CPU_ABSENT(i))
|
if (CPU_ABSENT(i))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue