summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/thread.h b/kern/thread.h
index 21b25030..81d32924 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -399,11 +399,11 @@ extern void thread_unfreeze(
/* Shall be taken at splsched only */
#ifdef MACH_LDEBUG
#define thread_lock(th) do { \
- assert(splsched() == SPL7); \
+ assert_splsched(); \
simple_lock_nocheck(&(th)->lock); \
} while (0)
#define thread_unlock(th) do { \
- assert(splsched() == SPL7); \
+ assert_splsched(); \
simple_unlock_nocheck(&(th)->lock); \
} while (0)
#else