]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-linux-no-pf-freeze-20050908
authorStephan Wienczny <Stephan@wienczny.de>
Mon, 19 Sep 2005 04:41:31 +0000 (04:41 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 19 Sep 2005 04:41:31 +0000 (04:41 +0000)
FIXES 21424

new enough linux has no PF_FREEZE

sigh

src/afs/LINUX/osi_sleep.c

index 3cea8c35ade5a1096e15de2e8d993e5ecd0868a5..3a9cda952fe6b5ec59103a3f60dee08f203547d1 100644 (file)
@@ -288,7 +288,13 @@ osi_TimedSleep(char *event, afs_int32 ams, int aintok)
        schedule_timeout(ticks);
 #ifdef AFS_LINUX26_ENV
 #ifdef CONFIG_PM
-    if (current->flags & PF_FREEZE)
+    if (
+#ifdef PF_FREEZE
+           current->flags & PF_FREEZE
+#else
+           !current->todo
+#endif
+           )
 #ifdef LINUX_REFRIGERATOR_TAKES_PF_FREEZE
        refrigerator(PF_FREEZE);
 #else