From owner-cvs-all Tue Mar 27 18:40:54 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 0129437B71C; Tue, 27 Mar 2001 18:40:48 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2S2el779486; Tue, 27 Mar 2001 18:40:47 -0800 (PST) (envelope-from jhb) Message-Id: <200103280240.f2S2el779486@freefall.freebsd.org> From: John Baldwin Date: Tue, 27 Mar 2001 18:40:47 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/include mutex.h src/sys/i386/include mutex.h src/sys/ia64/include mutex.h src/sys/kern kern_mutex.c src/sys/sys mutex.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2001/03/27 18:40:47 PST Modified files: sys/alpha/include mutex.h sys/i386/include mutex.h sys/ia64/include mutex.h sys/kern kern_mutex.c sys/sys mutex.h Log: - Switch from using save/disable/restore_intr to using critical_enter/exit and change the u_int mtx_saveintr member of struct mtx to a critical_t mtx_savecrit. - On the alpha we no longer need a custom _get_spin_lock() macro to avoid an extra PAL call, so remove it. - Partially fix using mutexes with WITNESS in modules. Change all the _mtx_{un,}lock_{spin,}_flags() macros to accept explicit file and line parameters and rename them to use a prefix of two underscores. Inside of kern_mutex.c, generate wrapper functions for _mtx_{un,}lock_{spin,}_flags() (only using a prefix of one underscore) that are called from modules. The macros mtx_{un,}lock_{spin,}_flags() are mapped to the __mtx_* macros inside of the kernel to inline the usual case of mutex operations and map to the internal _mtx_* functions in the module case so that modules will use WITNESS and KTR logging if the kernel is compiled with support for it. Revision Changes Path 1.22 +2 -24 src/sys/alpha/include/mutex.h 1.31 +5 -5 src/sys/i386/include/mutex.h 1.12 +2 -2 src/sys/ia64/include/mutex.h 1.58 +35 -3 src/sys/kern/kern_mutex.c 1.28 +57 -35 src/sys/sys/mutex.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message