From: Stephan Wienczny Date: Mon, 19 Sep 2005 04:41:31 +0000 (+0000) Subject: STABLE14-linux-no-pf-freeze-20050908 X-Git-Tag: openafs-stable-1_4_0-rc5~21 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3da868115ab77ecfe10b35ce32ba7a09f00f36f1;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 3cea8c35a..3a9cda952 100644 --- a/src/afs/LINUX/osi_sleep.c +++ b/src/afs/LINUX/osi_sleep.c @@ -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