Allow machines with one CPU and a valid mp table to boot an SMP kernel.

This commit is contained in:
tegge 2003-02-23 23:49:57 +00:00
parent f302079cd8
commit 762ff6ef1c
6 changed files with 12 additions and 0 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)