summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_shutdown.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-08-26 18:36:15 +0000
committerpeter <peter@FreeBSD.org>1997-08-26 18:36:15 +0000
commit3df4daaa03dee0b95d6bc5faeaff87eaf15db961 (patch)
treecaaace37df9cb4ec23400654fbeabb6d3d36b45a /sys/kern/kern_shutdown.c
parent7dfe3e5abe7df9a2db7c225b0ce9e73fc5955654 (diff)
downloadFreeBSD-src-3df4daaa03dee0b95d6bc5faeaff87eaf15db961.zip
FreeBSD-src-3df4daaa03dee0b95d6bc5faeaff87eaf15db961.tar.gz
Correct some things I forgot about until it was too late with smp_active.
smp_active = 1 used to indicate that the system had frozen previously started AP's, while smp_active = 0 was "AP's not yet started". I have split this into smp_started (which is set when the AP's come online), and smp_active is left for turning on/off AP scheduling.
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r--sys/kern/kern_shutdown.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index 167b86e..648922c 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
- * $Id: kern_shutdown.c,v 1.19 1997/08/09 01:44:19 julian Exp $
+ * $Id: kern_shutdown.c,v 1.20 1997/08/26 00:24:25 bde Exp $
*/
#include "opt_ddb.h"
@@ -181,9 +181,9 @@ boot(howto)
#ifdef SMP
int c, spins;
- /* don't accidently start it */
+ /* The MPSPEC says that the BSP must do the shutdown */
if (smp_active) {
- smp_active = 1;
+ smp_active = 0;
spins = 100;
@@ -193,8 +193,7 @@ boot(howto)
printf("timeout waiting for cpu #0!\n");
break;
}
- printf("oops, I'm on cpu#%d, I need to be on cpu#0!\n",
- c);
+ printf("I'm on cpu#%d, I need to be on cpu#0, sleeping..\n", c);
tsleep((caddr_t)&smp_active, PZERO, "cpu0wt", 10);
}
}
OpenPOWER on IntegriCloud