diff options
Diffstat (limited to 'include/litmus/locking.h')
-rw-r--r-- | include/litmus/locking.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/litmus/locking.h b/include/litmus/locking.h index 08b06200b955..4dd8c66868e6 100644 --- a/include/litmus/locking.h +++ b/include/litmus/locking.h | |||
@@ -242,10 +242,10 @@ int wake_up_for_lock(struct task_struct* t); | |||
242 | 242 | ||
243 | /* thread safe?? */ | 243 | /* thread safe?? */ |
244 | #ifndef CONFIG_LITMUS_NESTED_LOCKING | 244 | #ifndef CONFIG_LITMUS_NESTED_LOCKING |
245 | #define holds_locks(tsk) \ | 245 | #define holds_locks(t) \ |
246 | (tsk_rt(t)->num_locks_held || tsk_rt(t)->num_local_locks_held) | 246 | (tsk_rt(t)->num_locks_held || tsk_rt(t)->num_local_locks_held) |
247 | #else | 247 | #else |
248 | #define holds_locks(tsk) \ | 248 | #define holds_locks(t) \ |
249 | (tsk_rt(t)->num_locks_held || tsk_rt(t)->num_local_locks_held || !binheap_empty(&tsk_rt(t)->hp_blocked_tasks)) | 249 | (tsk_rt(t)->num_locks_held || tsk_rt(t)->num_local_locks_held || !binheap_empty(&tsk_rt(t)->hp_blocked_tasks)) |
250 | #endif | 250 | #endif |
251 | 251 | ||