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
Raw File
Tip revision: b918f6e62cd46774f9fc0a3fbba6bd10ad85ee14 authored by Rafael J. Wysocki on 03 November 2006, 06:07:19 UTC
[PATCH] swsusp: debugging
Tip revision: b918f6e
.gitignore
#
# NOTE! Don't add files that are generated in specific
# subdirectories here. Add them in the ".gitignore" file
# in that subdirectory instead.
#
# Normal rules
#
.*
*.o
*.a
*.s
*.ko
*.so
*.mod.c
*.i
*.lst
*.symtypes

#
# Top-level generic files
#
tags
vmlinux*
System.map
Module.symvers

#
# Generated include files
#
include/asm
include/asm-*/asm-offsets.h
include/config
include/linux/autoconf.h
include/linux/compile.h
include/linux/version.h
include/linux/utsrelease.h

# stgit generated dirs
patches-*

# quilt's files
patches
series
back to top