]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-linux-refrigerator-check-20050721
authorSabin Iacob <iacobs@exotic4.nipne.ro>
Mon, 25 Jul 2005 19:14:40 +0000 (19:14 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 25 Jul 2005 19:14:40 +0000 (19:14 +0000)
FIXES 20209

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

(cherry picked from commit bd1eba7f4091b7e2ef4264476d3ed3e54cc228f4)

src/afs/LINUX/osi_sleep.c

index 986fe2653ec46c5d4118ba0050ea873174e5ed39..33b53d79abf4e1d483d6c1081817b449b045c12a 100644 (file)
@@ -193,8 +193,10 @@ 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)) {
@@ -275,8 +277,10 @@ 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();