diff options
Diffstat (limited to 'kern/turnstile.h')
-rw-r--r-- | kern/turnstile.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kern/turnstile.h b/kern/turnstile.h index e7b4a5e3..f7ba0847 100644 --- a/kern/turnstile.h +++ b/kern/turnstile.h @@ -43,8 +43,6 @@ struct turnstile; */ struct turnstile_td; -#define turnstile_td_assert_lock(td) spinlock_assert_locked(&(td)->lock) - /* * Initialize turnstile thread data. */ @@ -62,6 +60,12 @@ 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) { |