down(&l->sem);
#endif
if (l->owner)
- osi_Panic("mutex_enter: 0x%x held by %d", l, l->owner);
+ osi_Panic("mutex_enter: 0x%lx held by %d", (unsigned long)l, l->owner);
l->owner = current->pid;
}
afs_mutex_exit(afs_kmutex_t * l)
{
if (l->owner != current->pid)
- osi_Panic("mutex_exit: 0x%x held by %d", l, l->owner);
+ osi_Panic("mutex_exit: 0x%lx held by %d", (unsigned long)l, l->owner);
l->owner = 0;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
mutex_unlock(&l->mutex);
#else
struct wait_queue wait = { current, NULL };
#endif
-
+ sigemptyset(&saved_set);
seq = cv->seq;
set_current_state(TASK_INTERRUPTIBLE);
#if defined(STRUCT_TASK_STRUCT_HAS_TODO)
!current->todo
#else
+#if defined(STRUCT_TASK_STRUCT_HAS_THREAD_INFO)
test_ti_thread_flag(current->thread_info, TIF_FREEZE)
+#else
+ test_ti_thread_flag(task_thread_info(current), TIF_FREEZE)
+#endif
#endif
#endif
)