]> git.hungrycats.org Git - linux/commitdiff
[PATCH] swsusp: add comments at critical places
authorPavel Machek <pavel@ucw.cz>
Mon, 18 Oct 2004 16:03:14 +0000 (09:03 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 18 Oct 2004 16:03:14 +0000 (09:03 -0700)
apm.c needs save_processor_state and friends.  Add a comment to keep people
from removing it.  Describe a way to make swsusp work on non-PSE machines.
Document purpose of acpi_restore_state.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/acpi/sleep.c
arch/i386/power/cpu.c
include/asm-i386/suspend.h

index 2a12d12e32e7900684481a32aff71b9875566e6a..be4df5548111f1c8e33069e2821624f9d3a52a63 100644 (file)
@@ -56,7 +56,7 @@ int acpi_save_state_disk (void)
 }
 
 /*
- * acpi_restore_state
+ * acpi_restore_state - undo effects of acpi_save_state_mem
  */
 void acpi_restore_state_mem (void)
 {
index 53542e3a923a41b9961ef4ca98888b0df99f6279..adb50ba2a679453a881765011c0e03c1d1102775 100644 (file)
@@ -148,6 +148,6 @@ void restore_processor_state(void)
        __restore_processor_state(&saved_context);
 }
 
-
+/* Needed by apm.c */
 EXPORT_SYMBOL(save_processor_state);
 EXPORT_SYMBOL(restore_processor_state);
index 2794a173f64d451291993bb0b078a152b0581732..f63799f2d2f9bb1d155f30f83d919d6e954ec9de 100644 (file)
@@ -9,6 +9,9 @@
 static inline int
 arch_prepare_suspend(void)
 {
+       /* If you want to make non-PSE machine work, turn off paging
+           in do_magic. swsusp_pg_dir should have identity mapping, so
+           it could work...  */
        if (!cpu_has_pse)
                return -EPERM;
        return 0;