Allow machines with one CPU and a valid mp table to boot an SMP kernel.
This commit is contained in:
parent
f302079cd8
commit
762ff6ef1c
@ -2727,6 +2727,8 @@ static void
|
||||
release_aps(void *dummy __unused)
|
||||
{
|
||||
|
||||
if (mp_ncpus == 1)
|
||||
return;
|
||||
mtx_lock_spin(&sched_lock);
|
||||
atomic_store_rel_int(&aps_ready, 1);
|
||||
while (smp_started == 0)
|
||||
|
@ -2727,6 +2727,8 @@ static void
|
||||
release_aps(void *dummy __unused)
|
||||
{
|
||||
|
||||
if (mp_ncpus == 1)
|
||||
return;
|
||||
mtx_lock_spin(&sched_lock);
|
||||
atomic_store_rel_int(&aps_ready, 1);
|
||||
while (smp_started == 0)
|
||||
|
@ -2727,6 +2727,8 @@ static void
|
||||
release_aps(void *dummy __unused)
|
||||
{
|
||||
|
||||
if (mp_ncpus == 1)
|
||||
return;
|
||||
mtx_lock_spin(&sched_lock);
|
||||
atomic_store_rel_int(&aps_ready, 1);
|
||||
while (smp_started == 0)
|
||||
|
@ -2727,6 +2727,8 @@ static void
|
||||
release_aps(void *dummy __unused)
|
||||
{
|
||||
|
||||
if (mp_ncpus == 1)
|
||||
return;
|
||||
mtx_lock_spin(&sched_lock);
|
||||
atomic_store_rel_int(&aps_ready, 1);
|
||||
while (smp_started == 0)
|
||||
|
@ -2727,6 +2727,8 @@ static void
|
||||
release_aps(void *dummy __unused)
|
||||
{
|
||||
|
||||
if (mp_ncpus == 1)
|
||||
return;
|
||||
mtx_lock_spin(&sched_lock);
|
||||
atomic_store_rel_int(&aps_ready, 1);
|
||||
while (smp_started == 0)
|
||||
|
@ -2727,6 +2727,8 @@ static void
|
||||
release_aps(void *dummy __unused)
|
||||
{
|
||||
|
||||
if (mp_ncpus == 1)
|
||||
return;
|
||||
mtx_lock_spin(&sched_lock);
|
||||
atomic_store_rel_int(&aps_ready, 1);
|
||||
while (smp_started == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user