diff options
author | Pavel Machek <pavel@ucw.cz> | 2008-02-05 13:27:12 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-02-07 01:27:17 -0500 |
commit | 23b168d425ca0ca25257ff8205a39f1c2d1b0f27 (patch) | |
tree | db8849f78280ba6441306368ea5838d848123683 | |
parent | 1a3b77ae60f19fa85f4cdc34b6c09efb1a18372c (diff) |
PM: documentation cleanups
Signed-off-by: Pavel Machek <pavel@suse.cz>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | Documentation/kernel-parameters.txt | 6 | ||||
-rw-r--r-- | Documentation/power/swsusp.txt | 5 | ||||
-rw-r--r-- | drivers/acpi/hardware/hwsleep.c | 2 | ||||
-rw-r--r-- | drivers/acpi/sleep/main.c | 2 | ||||
-rw-r--r-- | kernel/power/Kconfig | 9 |
5 files changed, 17 insertions, 7 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 8fd5aa40585f..8ea41b6e6a85 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -147,8 +147,10 @@ and is between 256 and 4096 characters. It is defined in the file | |||
147 | default: 0 | 147 | default: 0 |
148 | 148 | ||
149 | acpi_sleep= [HW,ACPI] Sleep options | 149 | acpi_sleep= [HW,ACPI] Sleep options |
150 | Format: { s3_bios, s3_mode } | 150 | Format: { s3_bios, s3_mode, s3_beep } |
151 | See Documentation/power/video.txt | 151 | See Documentation/power/video.txt for s3_bios and s3_mode. |
152 | s3_beep is for debugging; it makes the PC's speaker beep | ||
153 | as soon as the kernel's real-mode entry point is called. | ||
152 | 154 | ||
153 | acpi_sci= [HW,ACPI] ACPI System Control Interrupt trigger mode | 155 | acpi_sci= [HW,ACPI] ACPI System Control Interrupt trigger mode |
154 | Format: { level | edge | high | low } | 156 | Format: { level | edge | high | low } |
diff --git a/Documentation/power/swsusp.txt b/Documentation/power/swsusp.txt index aea7e9209667..9d60ab717a7b 100644 --- a/Documentation/power/swsusp.txt +++ b/Documentation/power/swsusp.txt | |||
@@ -386,6 +386,11 @@ before suspending; then remount them after resuming. | |||
386 | There is a work-around for this problem. For more information, see | 386 | There is a work-around for this problem. For more information, see |
387 | Documentation/usb/persist.txt. | 387 | Documentation/usb/persist.txt. |
388 | 388 | ||
389 | Q: Can I suspend-to-disk using a swap partition under LVM? | ||
390 | |||
391 | A: No. You can suspend successfully, but you'll not be able to | ||
392 | resume. uswsusp should be able to work with LVM. See suspend.sf.net. | ||
393 | |||
389 | Q: I upgraded the kernel from 2.6.15 to 2.6.16. Both kernels were | 394 | Q: I upgraded the kernel from 2.6.15 to 2.6.16. Both kernels were |
390 | compiled with the similar configuration files. Anyway I found that | 395 | compiled with the similar configuration files. Anyway I found that |
391 | suspend to disk (and resume) is much slower on 2.6.16 compared to | 396 | suspend to disk (and resume) is much slower on 2.6.16 compared to |
diff --git a/drivers/acpi/hardware/hwsleep.c b/drivers/acpi/hardware/hwsleep.c index fd1c4ba63367..058d0be5cbe2 100644 --- a/drivers/acpi/hardware/hwsleep.c +++ b/drivers/acpi/hardware/hwsleep.c | |||
@@ -286,13 +286,13 @@ acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state) | |||
286 | } | 286 | } |
287 | 287 | ||
288 | /* | 288 | /* |
289 | * 1) Disable/Clear all GPEs | ||
289 | * 2) Enable all wakeup GPEs | 290 | * 2) Enable all wakeup GPEs |
290 | */ | 291 | */ |
291 | status = acpi_hw_disable_all_gpes(); | 292 | status = acpi_hw_disable_all_gpes(); |
292 | if (ACPI_FAILURE(status)) { | 293 | if (ACPI_FAILURE(status)) { |
293 | return_ACPI_STATUS(status); | 294 | return_ACPI_STATUS(status); |
294 | } | 295 | } |
295 | |||
296 | acpi_gbl_system_awake_and_running = FALSE; | 296 | acpi_gbl_system_awake_and_running = FALSE; |
297 | 297 | ||
298 | status = acpi_hw_enable_all_wakeup_gpes(); | 298 | status = acpi_hw_enable_all_wakeup_gpes(); |
diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c index 485de1347075..c9a733f36bd5 100644 --- a/drivers/acpi/sleep/main.c +++ b/drivers/acpi/sleep/main.c | |||
@@ -170,7 +170,7 @@ static int acpi_pm_enter(suspend_state_t pm_state) | |||
170 | /* Reprogram control registers and execute _BFS */ | 170 | /* Reprogram control registers and execute _BFS */ |
171 | acpi_leave_sleep_state_prep(acpi_state); | 171 | acpi_leave_sleep_state_prep(acpi_state); |
172 | 172 | ||
173 | /* ACPI 3.0 specs (P62) says that it's the responsabilty | 173 | /* ACPI 3.0 specs (P62) says that it's the responsibility |
174 | * of the OSPM to clear the status bit [ implying that the | 174 | * of the OSPM to clear the status bit [ implying that the |
175 | * POWER_BUTTON event should not reach userspace ] | 175 | * POWER_BUTTON event should not reach userspace ] |
176 | */ | 176 | */ |
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig index ef9b802738a5..79833170bb9c 100644 --- a/kernel/power/Kconfig +++ b/kernel/power/Kconfig | |||
@@ -74,8 +74,8 @@ config PM_TRACE_RTC | |||
74 | RTC across reboots, so that you can debug a machine that just hangs | 74 | RTC across reboots, so that you can debug a machine that just hangs |
75 | during suspend (or more commonly, during resume). | 75 | during suspend (or more commonly, during resume). |
76 | 76 | ||
77 | To use this debugging feature you should attempt to suspend the machine, | 77 | To use this debugging feature you should attempt to suspend the |
78 | then reboot it, then run | 78 | machine, reboot it and then run |
79 | 79 | ||
80 | dmesg -s 1000000 | grep 'hash matches' | 80 | dmesg -s 1000000 | grep 'hash matches' |
81 | 81 | ||
@@ -123,7 +123,10 @@ config HIBERNATION | |||
123 | called "hibernation" in user interfaces. STD checkpoints the | 123 | called "hibernation" in user interfaces. STD checkpoints the |
124 | system and powers it off; and restores that checkpoint on reboot. | 124 | system and powers it off; and restores that checkpoint on reboot. |
125 | 125 | ||
126 | You can suspend your machine with 'echo disk > /sys/power/state'. | 126 | You can suspend your machine with 'echo disk > /sys/power/state' |
127 | after placing resume=/dev/swappartition on the kernel command line | ||
128 | in your bootloader's configuration file. | ||
129 | |||
127 | Alternatively, you can use the additional userland tools available | 130 | Alternatively, you can use the additional userland tools available |
128 | from <http://suspend.sf.net>. | 131 | from <http://suspend.sf.net>. |
129 | 132 | ||