PERFORCE change 105609 for review

Kip Macy kmacy at FreeBSD.org
Sun Sep 3 19:12:41 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=105609

Change 105609 by kmacy at kmacy_storage:sun4v_work_stable on 2006/09/03 19:11:52

	undo panic breakage

Affected files ...

.. //depot/projects/kmacy_sun4v_stable/src/sys/kern/kern_shutdown.c#3 edit

Differences ...

==== //depot/projects/kmacy_sun4v_stable/src/sys/kern/kern_shutdown.c#3 (text+ko) ====

@@ -506,8 +506,7 @@
 	static char buf[256];
 
 #ifdef SMP
-	struct pcpu *pc;
-	static int cpusprinted = 0;
+	DELAY(10000000*curcpu);
 	/*
 	 * We don't want multiple CPU's to panic at the same time, so we
 	 * use panic_cpu as a simple spinlock.  We have to keep checking
@@ -520,15 +519,6 @@
 			while (panic_cpu != NOCPU)
 				; /* nothing */
 
-	if (!cpusprinted) {
-		SLIST_FOREACH(pc, &cpuhead, pc_allcpu) { 
-			printf("cpu%d tl=%d trapid=%d\n", pc->pc_cpuid, 
-			       pc->pc_tl, pc->pc_trapid);
-			db_trace_thread(pc->pc_curthread, 20); 	
-		}
-		cpusprinted = 1;
-	}
-       
 #endif
 
 	bootopt = RB_AUTOBOOT | RB_DUMP;


More information about the p4-projects mailing list