summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_rman.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-01-02 11:34:57 +0000
committerbde <bde@FreeBSD.org>1999-01-02 11:34:57 +0000
commit734d13314e6e9f235abcba66a420f81b29606173 (patch)
treea59d3d6af3585db9166b59563c58b540faccaa4d /sys/kern/subr_rman.c
parent60b0c6afef485cb129b9755b9ca0fc373c700689 (diff)
downloadFreeBSD-src-734d13314e6e9f235abcba66a420f81b29606173.zip
FreeBSD-src-734d13314e6e9f235abcba66a420f81b29606173.tar.gz
Ifdefed conditionally used simplock variables.
Diffstat (limited to 'sys/kern/subr_rman.c')
-rw-r--r--sys/kern/subr_rman.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_rman.c b/sys/kern/subr_rman.c
index ddf576c..e0526bb 100644
--- a/sys/kern/subr_rman.c
+++ b/sys/kern/subr_rman.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: subr_rman.c,v 1.2 1998/11/23 09:33:35 bde Exp $
+ * $Id: subr_rman.c,v 1.3 1998/12/07 21:58:29 archie Exp $
*/
/*
@@ -68,7 +68,9 @@
MALLOC_DEFINE(M_RMAN, "rman", "Resource manager");
struct rman_head rman_head;
+#ifndef NULL_SIMPLELOCKS
static struct simplelock rman_lock; /* mutex to protect rman_head */
+#endif
static int int_rman_activate_resource(struct rman *rm, struct resource *r,
struct resource **whohas);
static int int_rman_release_resource(struct rman *rm, struct resource *r);
OpenPOWER on IntegriCloud