From 277c3b4ecf11398457c617ecd63e6c7f1a52fd1c Mon Sep 17 00:00:00 2001 From: Stephan Wienczny Date: Mon, 19 Sep 2005 04:39:13 +0000 Subject: [PATCH] linux-no-pf-freeze-20050908 FIXES 21424 new enough linux has no PF_FREEZE sigh --- src/afs/LINUX/osi_sleep.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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 -- 2.39.5