From: Stephan Wienczny Date: Thu, 8 Sep 2005 19:53:45 +0000 (+0000) Subject: STABLE14-linux-no-pf-freeze-20050908 X-Git-Tag: openafs-stable-1_4_0-rc4~8 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1f1859b00eb77e64b85ad5bfce85ed5fb30b7b05;p=packages%2Fo%2Fopenafs.git STABLE14-linux-no-pf-freeze-20050908 FIXES 21424 new enough linux has no PF_FREEZE sigh --- diff --git a/src/afs/LINUX/osi_sleep.c b/src/afs/LINUX/osi_sleep.c index 75df9c022..3cea8c35a 100644 --- a/src/afs/LINUX/osi_sleep.c +++ b/src/afs/LINUX/osi_sleep.c @@ -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