]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - Documentation/power/swsusp.txt
Merge watchdog driver updates
[linux-2.6-omap-h63xx.git] / Documentation / power / swsusp.txt
index 8363c51831d30700c33c8a65aebded62d80f0ea6..ddf907fbcc0570ba3acf83ae87a8d702e637871b 100644 (file)
@@ -164,7 +164,7 @@ place where the thread is safe to be frozen (no kernel semaphores
 should be held at that point and it must be safe to sleep there), and
 add:
 
-       try_to_freeze(PF_FREEZE);
+       try_to_freeze();
 
 If the thread is needed for writing the image to storage, you should
 instead set the PF_NOFREEZE process flag when creating the thread (and
@@ -311,3 +311,10 @@ As a rule of thumb use encrypted swap to protect your data while your
 system is shut down or suspended. Additionally use the encrypted
 suspend image to prevent sensitive data from being stolen after
 resume.
+
+Q: Why we cannot suspend to a swap file?
+
+A: Because accessing swap file needs the filesystem mounted, and
+filesystem might do something wrong (like replaying the journal)
+during mount. [Probably could be solved by modifying every filesystem
+to support some kind of "really read-only!" option. Patches welcome.]