svn commit: r201846 - projects/mips/sys/kern

Warner Losh imp at FreeBSD.org
Fri Jan 8 22:52:02 UTC 2010


Author: imp
Date: Fri Jan  8 22:52:02 2010
New Revision: 201846
URL: http://svn.freebsd.org/changeset/base/201846

Log:
  Revert r199758.  It pointed out that we were calling pcpu_init way too
  late...

Modified:
  projects/mips/sys/kern/kern_shutdown.c

Modified: projects/mips/sys/kern/kern_shutdown.c
==============================================================================
--- projects/mips/sys/kern/kern_shutdown.c	Fri Jan  8 22:48:21 2010	(r201845)
+++ projects/mips/sys/kern/kern_shutdown.c	Fri Jan  8 22:52:02 2010	(r201846)
@@ -516,8 +516,7 @@ panic(const char *fmt, ...)
 	va_list ap;
 	static char buf[256];
 
-	if (td)
-		critical_enter();
+	critical_enter();
 #ifdef SMP
 	/*
 	 * We don't want multiple CPU's to panic at the same time, so we
@@ -576,8 +575,7 @@ panic(const char *fmt, ...)
 	/* thread_unlock(td); */
 	if (!sync_on_panic)
 		bootopt |= RB_NOSYNC;
-	if (td)
-		critical_exit();
+	critical_exit();
 	boot(bootopt);
 }
 


More information about the svn-src-projects mailing list