From d9765e5bd5650853ed5612f5e29ab787182e952f Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Mon, 21 Jun 2004 20:30:18 +0000 Subject: [PATCH] linux26-allow-suspend-20040621 FIXES 5208 necessary changes for swsusp to work. --- src/afs/LINUX/osi_sleep.c | 8 ++++++++ src/afs/sysincludes.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/afs/LINUX/osi_sleep.c b/src/afs/LINUX/osi_sleep.c index c9ca2e3d23..e7f7a68465 100644 --- a/src/afs/LINUX/osi_sleep.c +++ b/src/afs/LINUX/osi_sleep.c @@ -193,6 +193,10 @@ afs_osi_SleepSig(void *event) AFS_ASSERT_GLOCK(); AFS_GUNLOCK(); schedule(); +#ifdef AFS_LINUX26_ENV + if (current->flags & PF_FREEZE) + refrigerator(PF_FREEZE); +#endif AFS_GLOCK(); if (signal_pending(current)) { retval = EINTR; @@ -271,6 +275,10 @@ osi_TimedSleep(char *event, afs_int32 ams, int aintok) code = EINTR; } else schedule_timeout(ticks); +#ifdef AFS_LINUX26_ENV + if (current->flags & PF_FREEZE) + refrigerator(PF_FREEZE); +#endif AFS_GLOCK(); remove_wait_queue(&evp->cond, &wait); diff --git a/src/afs/sysincludes.h b/src/afs/sysincludes.h index 2146b7e584..d12b2400e5 100644 --- a/src/afs/sysincludes.h +++ b/src/afs/sysincludes.h @@ -64,6 +64,7 @@ #include #include #include +#include #endif /* Avoid conflicts with coda overloading AFS type namespace. Must precede * inclusion of uaccess.h.