From owner-cvs-all Mon Apr 16 21:18:13 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C0F1337B43C; Mon, 16 Apr 2001 21:18:08 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3H4I8U04577; Mon, 16 Apr 2001 21:18:08 -0700 (PDT) (envelope-from jhb) Message-Id: <200104170418.f3H4I8U04577@freefall.freebsd.org> From: John Baldwin Date: Mon, 16 Apr 2001 21:18:08 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha mp_machdep.c src/sys/i386/i386 mp_machdep.c src/sys/kern kern_shutdown.c src/sys/powerpc/powerpc mp_machdep.c src/sys/sys kernel.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2001/04/16 21:18:08 PDT Modified files: sys/alpha/alpha mp_machdep.c sys/i386/i386 mp_machdep.c sys/kern kern_shutdown.c sys/powerpc/powerpc mp_machdep.c sys/sys kernel.h Log: 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. Revision Changes Path 1.15 +1 -4 src/sys/alpha/alpha/mp_machdep.c 1.153 +1 -5 src/sys/i386/i386/mp_machdep.c 1.98 +10 -2 src/sys/kern/kern_shutdown.c 1.5 +1 -5 src/sys/powerpc/powerpc/mp_machdep.c 1.86 +1 -4 src/sys/sys/kernel.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message