summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/ia64/include/mutex.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/ia64/include/mutex.h b/sys/ia64/include/mutex.h
index e4b82df..809a56e 100644
--- a/sys/ia64/include/mutex.h
+++ b/sys/ia64/include/mutex.h
@@ -38,16 +38,7 @@
#ifdef _KERNEL
-/*
- * Debugging
- */
-#ifdef MUTEX_DEBUG
-#define ASS_IEN MPASS2((save_intr() & IA64_PSR_I), "psr.i")
-#define ASS_IDIS MPASS2(!(save_intr() & IA64_PSR_I), "!psr.i")
-#define ASS_SIEN(mpp) MPASS2(((mpp)->mtx_saveintr & IA64_PSR_I), \
- "mpp->mtx_saveintr & IA64_PSR_I")
-
-#define mtx_legal2block() (save_intr() & IA64_PSR_I)
+#define mtx_legal2block() (ia64_get_psr() & IA64_PSR_I)
#define mtx_intr_enable(mutex) (mutex)->mtx_saveintr |= IA64_PSR_I
#endif /* _KERNEL */
OpenPOWER on IntegriCloud