From: Stephan Wienczny Date: Mon, 19 Sep 2005 04:39:13 +0000 (+0000) Subject: linux-no-pf-freeze-20050908 X-Git-Tag: openafs-devel-1_5_0~324 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=277c3b4ecf11398457c617ecd63e6c7f1a52fd1c;p=packages%2Fo%2Fopenafs.git 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..3a9cda952 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 @@ -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