From 82848b046f3ceba1d796ce044c2df7fc6751b0a8 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 17 Apr 2001 04:18:08 +0000 Subject: Blow away the panic mutex in favor of using a single atomic_cmpset() on a panic_cpu shared variable. I used a simple atomic operation here instead of a spin lock as it seemed to be excessive overhead. Also, this can avoid recursive panics if, for example, witness is broken. --- sys/powerpc/powerpc/mp_machdep.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/powerpc') diff --git a/sys/powerpc/powerpc/mp_machdep.c b/sys/powerpc/powerpc/mp_machdep.c index 8ca5b04..e8c65f3 100644 --- a/sys/powerpc/powerpc/mp_machdep.c +++ b/sys/powerpc/powerpc/mp_machdep.c @@ -232,15 +232,11 @@ globaldata_find(int cpuno) /* lock around the MP rendezvous */ static struct mtx smp_rv_mtx; -/* only 1 CPU can panic at a time :) */ -struct mtx panic_mtx; - static void init_locks(void) { mtx_init(&smp_rv_mtx, "smp rendezvous", MTX_SPIN); - mtx_init(&panic_mtx, "panic", MTX_DEF); } void -- cgit v1.1