#include <afsconfig.h>
#include "afs/param.h"
-RCSID
- ("$Header$");
#include "rx/rx_kcommon.h"
#include "rx_kmutex.h"
#include "rx/rx_kernel.h"
+#include "osi_compat.h"
+
void
afs_mutex_init(afs_kmutex_t * l)
{
while(seq == cv->seq) {
schedule();
-#ifdef AFS_LINUX26_ENV
-#ifdef CONFIG_PM
- if (
-#ifdef PF_FREEZE
- current->flags & PF_FREEZE
-#else
-#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
- )
-#ifdef LINUX_REFRIGERATOR_TAKES_PF_FREEZE
- refrigerator(PF_FREEZE);
-#else
- refrigerator();
-#endif
- set_current_state(TASK_INTERRUPTIBLE);
-#endif
-#endif
+ afs_try_to_freeze();
+ set_current_state(TASK_INTERRUPTIBLE);
}
remove_wait_queue(&cv->waitq, &wait);