-
- Downloads
[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>
Showing
- Documentation/ABI/testing/sysfs-power 16 additions, 1 deletionDocumentation/ABI/testing/sysfs-power
- Documentation/power/interface.txt 13 additions, 0 deletionsDocumentation/power/interface.txt
- include/linux/pm.h 3 additions, 1 deletioninclude/linux/pm.h
- kernel/power/disk.c 28 additions, 9 deletionskernel/power/disk.c
Loading
Please register or sign in to comment