Commit 13a82a1e authored by Pavel Machek's avatar Pavel Machek Committed by Linus Torvalds

[PATCH] swsusp: add comments at critical places

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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 895c517f
......@@ -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)
{
......
......@@ -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);
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment