summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/sgi/include/mutex.h4
-rw-r--r--sys/arch/sgi/sgi/mutex.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sgi/include/mutex.h b/sys/arch/sgi/include/mutex.h
index f3b0bd61b84..858d27c6a8f 100644
--- a/sys/arch/sgi/include/mutex.h
+++ b/sys/arch/sgi/include/mutex.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mutex.h,v 1.2 2007/05/05 12:06:20 miod Exp $ */
+/* $OpenBSD: mutex.h,v 1.3 2007/05/14 17:32:15 miod Exp $ */
/*
* Copyright (c) 2004 Artur Grabowski <art@openbsd.org>
@@ -39,7 +39,7 @@ struct mutex {
void mtx_init(struct mutex *, int);
-#define MUTEX_INITIALIZER(ipl) { 0, (ipl), 0 }
+#define MUTEX_INITIALIZER(ipl) { 0, (ipl), IPL_NONE }
#ifdef DIAGNOSTIC
#define MUTEX_ASSERT_LOCKED(mtx) do { \
diff --git a/sys/arch/sgi/sgi/mutex.c b/sys/arch/sgi/sgi/mutex.c
index bfaf0550d6a..52bed11efa9 100644
--- a/sys/arch/sgi/sgi/mutex.c
+++ b/sys/arch/sgi/sgi/mutex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mutex.c,v 1.1 2007/05/01 18:59:40 miod Exp $ */
+/* $OpenBSD: mutex.c,v 1.2 2007/05/14 17:32:17 miod Exp $ */
/*
* Copyright (c) 2004 Artur Grabowski <art@openbsd.org>
@@ -45,7 +45,7 @@ mtx_init(struct mutex *mtx, int wantipl)
mtx->mtx_lock = 0;
/* We can't access imask[] here, since MUTEX_INITIALIZER can't. */
mtx->mtx_wantipl = wantipl;
- mtx->mtx_oldcpl = 0;
+ mtx->mtx_oldcpl = IPL_NONE;
}
void
@@ -63,6 +63,6 @@ mtx_leave(struct mutex *mtx)
{
MUTEX_ASSERT_LOCKED(mtx);
mtx->mtx_lock = 0;
- if (mtx->mtx_wantipl != 0)
+ if (mtx->mtx_wantipl != IPL_NONE)
splx(mtx->mtx_oldcpl);
}