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

new enough linux has no PF_FREEZE

sigh

src/afs/LINUX/osi_sleep.c

index 75df9c022e66d402d4aa964e6617d45e542580d5..3a9cda952fe6b5ec59103a3f60dee08f203547d1 100644 (file)
@@ -194,7 +194,13 @@ afs_osi_SleepSig(void *event)
        schedule();
 #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
@@ -282,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