linux-refrigerator-check-20050721
authorSabin Iacob <iacobs@exotic4.nipne.ro>
Thu, 21 Jul 2005 05:41:09 +0000 (05:41 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 21 Jul 2005 05:41:09 +0000 (05:41 +0000)
FIXES 20209

don't call refrigerator unless we have a kernel which supports it

src/afs/LINUX/osi_sleep.c

index 986fe26..33b53d7 100644 (file)
@@ -193,9 +193,11 @@ afs_osi_SleepSig(void *event)
        AFS_GUNLOCK();
        schedule();
 #ifdef AFS_LINUX26_ENV
+#ifdef CONFIG_PF
        if (current->flags & PF_FREEZE)
            refrigerator(PF_FREEZE);
 #endif
+#endif
        AFS_GLOCK();
        if (signal_pending(current)) {
            retval = EINTR;
@@ -275,9 +277,11 @@ osi_TimedSleep(char *event, afs_int32 ams, int aintok)
     } else
        schedule_timeout(ticks);
 #ifdef AFS_LINUX26_ENV
+#ifdef CONFIG_PF
     if (current->flags & PF_FREEZE)
        refrigerator(PF_FREEZE);
 #endif
+#endif
 
     AFS_GLOCK();
     remove_wait_queue(&evp->cond, &wait);