From 3da868115ab77ecfe10b35ce32ba7a09f00f36f1 Mon Sep 17 00:00:00 2001 From: Stephan Wienczny Date: Mon, 19 Sep 2005 04:41:31 +0000 Subject: [PATCH] STABLE14-linux-no-pf-freeze-20050908 FIXES 21424 new enough linux has no PF_FREEZE sigh --- src/afs/LINUX/osi_sleep.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5