Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Sep 2006 19:12:33 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 105609 for review
Message-ID:  <200609031912.k83JCXOM039122@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105609

Change 105609 by kmacy@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609031912.k83JCXOM039122>