diff options
author | Nate Lawson <njl@FreeBSD.org> | 2004-11-30 06:21:38 +0000 |
---|---|---|
committer | Nate Lawson <njl@FreeBSD.org> | 2004-11-30 06:21:38 +0000 |
commit | 2fd32b933f7989be899d35a849efb849a449b3a2 (patch) | |
tree | c99c3bbb948478c704cb72bd68ffde84fb59de1c /sys | |
parent | 63a6daf68b606bb36888290e73f9eb568a9f9469 (diff) | |
download | src-2fd32b933f7989be899d35a849efb849a449b3a2.tar.gz src-2fd32b933f7989be899d35a849efb849a449b3a2.zip |
Replace a printf with a KASSERT that we are indeed running on the BSP.
Notes
Notes:
svn path=/head/; revision=138217
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_shutdown.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 015692d513c2..430d4c6dd26a 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. */ |