mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
[PATCH] swsusp: debugging
Add a swsusp debugging mode. This does everything that's needed for a suspend except for actually suspending. So we can look in the log messages and work out a) what code is being slow and b) which drivers are misbehaving. (1) # echo testproc > /sys/power/disk # echo disk > /sys/power/state This should turn off the non-boot CPU, freeze all processes, wait for 5 seconds and then thaw the processes and the CPU. (2) # echo test > /sys/power/disk # echo disk > /sys/power/state This should turn off the non-boot CPU, freeze all processes, shrink memory, suspend all devices, wait for 5 seconds, resume the devices etc. Cc: Pavel Machek <pavel@ucw.cz> Cc: Stefan Seyfried <seife@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
90d5390944
commit
b918f6e62c
4 changed files with 60 additions and 11 deletions
|
@ -116,7 +116,9 @@ typedef int __bitwise suspend_disk_method_t;
|
|||
#define PM_DISK_PLATFORM ((__force suspend_disk_method_t) 2)
|
||||
#define PM_DISK_SHUTDOWN ((__force suspend_disk_method_t) 3)
|
||||
#define PM_DISK_REBOOT ((__force suspend_disk_method_t) 4)
|
||||
#define PM_DISK_MAX ((__force suspend_disk_method_t) 5)
|
||||
#define PM_DISK_TEST ((__force suspend_disk_method_t) 5)
|
||||
#define PM_DISK_TESTPROC ((__force suspend_disk_method_t) 6)
|
||||
#define PM_DISK_MAX ((__force suspend_disk_method_t) 7)
|
||||
|
||||
struct pm_ops {
|
||||
suspend_disk_method_t pm_disk_mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue