]> err.no Git - linux-2.6/commit
[PATCH] swsusp: debugging
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 3 Nov 2006 06:07:19 +0000 (22:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 3 Nov 2006 20:27:58 +0000 (12:27 -0800)
commitb918f6e62cd46774f9fc0a3fbba6bd10ad85ee14
treed73dc0e8823c8445d84701cc3d527e0e34494a32
parent90d53909443b3986569b38ef145f09ea2359af75
[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>
Documentation/ABI/testing/sysfs-power
Documentation/power/interface.txt
include/linux/pm.h
kernel/power/disk.c