https://github.com/torvalds/linux
Revision b918f6e62cd46774f9fc0a3fbba6bd10ad85ee14 authored by Rafael J. Wysocki on 03 November 2006, 06:07:19 UTC, committed by Linus Torvalds on 03 November 2006, 20:27:58 UTC
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>
1 parent 90d5390
History
Tip revision: b918f6e62cd46774f9fc0a3fbba6bd10ad85ee14 authored by Rafael J. Wysocki on 03 November 2006, 06:07:19 UTC
[PATCH] swsusp: debugging
Tip revision: b918f6e
File Mode Size
Makefile -rw-r--r-- 237 bytes
compat.c -rw-r--r-- 17.3 KB
compat_mq.c -rw-r--r-- 4.0 KB
mqueue.c -rw-r--r-- 29.8 KB
msg.c -rw-r--r-- 20.1 KB
msgutil.c -rw-r--r-- 2.4 KB
sem.c -rw-r--r-- 34.7 KB
shm.c -rw-r--r-- 23.7 KB
util.c -rw-r--r-- 18.9 KB
util.h -rw-r--r-- 3.3 KB

back to top