summaryrefslogtreecommitdiff
path: root/kern/turnstile.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/turnstile.h')
-rw-r--r--kern/turnstile.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/kern/turnstile.h b/kern/turnstile.h
index f7ba0847..e7b4a5e3 100644
--- a/kern/turnstile.h
+++ b/kern/turnstile.h
@@ -43,6 +43,8 @@ struct turnstile;
*/
struct turnstile_td;
+#define turnstile_td_assert_lock(td) spinlock_assert_locked(&(td)->lock)
+
/*
* Initialize turnstile thread data.
*/
@@ -60,12 +62,6 @@ turnstile_td_init(struct turnstile_td *td)
* Turnstile thread data locking functions.
*/
-static inline bool
-turnstile_td_locked(struct turnstile_td *td)
-{
- return spinlock_locked(&(td)->lock);
-}
-
static inline void
turnstile_td_lock(struct turnstile_td *td)
{