summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-11-30 06:21:38 +0000
committernjl <njl@FreeBSD.org>2004-11-30 06:21:38 +0000
commit7822d39332bec2bbf561a95f0cbc70fe67ca6a05 (patch)
treec99c3bbb948478c704cb72bd68ffde84fb59de1c
parent335a6e05ce58db3d834b62cefbe28d1de48a57dd (diff)
downloadFreeBSD-src-7822d39332bec2bbf561a95f0cbc70fe67ca6a05.zip
FreeBSD-src-7822d39332bec2bbf561a95f0cbc70fe67ca6a05.tar.gz
Replace a printf with a KASSERT that we are indeed running on the BSP.
-rw-r--r--sys/kern/kern_shutdown.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index 015692d..430d4c6 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -254,6 +254,7 @@ boot(int howto)
mtx_lock_spin(&sched_lock);
sched_bind(curthread, 0);
mtx_unlock_spin(&sched_lock);
+ KASSERT(PCPU_GET(cpuid) == 0, ("boot: not running on cpu 0"));
#endif
/* collect extra flags that shutdown_nice might have set */
@@ -262,10 +263,6 @@ boot(int howto)
/* We are out of the debugger now. */
kdb_active = 0;
-#ifdef SMP
- if (smp_active)
- printf("boot() called on cpu#%d\n", PCPU_GET(cpuid));
-#endif
/*
* Do any callouts that should be done BEFORE syncing the filesystems.
*/
OpenPOWER on IntegriCloud