Re: pm: Revert swsusp to 2.6.0-test3

From: Pavel Machek
Date: Mon Sep 29 2003 - 16:36:45 EST


Hi!

> > > I'd also like to have some kind of readme or similar on the different
> > > suspend/resume issues, and why we have two different
> > > approaches. Hmm?
>
> <azbestos underwear on>What about this one?</off>

Thanks to Tomas Szepe, grammar fixed a bit.

--- clean/Documentation/power/swsusp.txt 2003-08-27 12:00:01.000000000 +0200
+++ linux/Documentation/power/swsusp.txt 2003-09-29 23:29:43.000000000 +0200
@@ -17,6 +17,24 @@
You need to append resume=/dev/your_swap_partition to kernel command
line. Then you suspend by echo 4 > /proc/acpi/sleep.

+Pavel's unreliable guide to swsusp mess
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+They are currently two versions of swap suspend in the kernel, the old
+"Pavel's" version in kernel/power/swsusp.c and the new "Patrick's"
+version in kernel/power/pmdisk.c. They provide the same functionality;
+the old version looks ugly but was tested, while the new version looks
+nicer but did not receive so much testing. echo 4 > /proc/acpi/sleep
+calls the old version, echo disk > /sys/power/state calls the new one.
+
+[In the future, when the new version is stable enough, two things can
+happen:
+
+* the new version is moved into swsusp.c, and swsusp is renamed to swap
+ suspend (Pavel prefers this)
+
+* pmdisk is kept as is and swsusp.c is removed from the kernel]
+
[Notice. Rest docs is pretty outdated (see date!) It should be safe to
use swsusp on ext3/reiserfs these days.]



--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/