[PATCH] swsusp: add s2ram ioctl to userland interface
authorLuca Tettamanti <kronos.it@gmail.com>
Thu, 23 Mar 2006 11:00:09 +0000 (03:00 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 23 Mar 2006 15:38:08 +0000 (07:38 -0800)
commit9b238205ba5d79a8a242d7a5ddb82b89e4dc4e48
tree494b06bddd9d6b28a4e83ad7b49523a92ee5b207
parent94c188d32996beac00426740974310e32f162c14
[PATCH] swsusp: add s2ram ioctl to userland interface

Add the SNAPSHOT_S2RAM ioctl to the snapshot device.

This ioctl allows a userland application to make the system (previously frozen
with the SNAPSHOT_FREE ioctl) enter the S3 state without freezing processes
and disabling nonboot CPUs for the second time.

This will allow us to implement the suspend-to-disk-and-RAM (STDR)
functionality in the userland suspend tools.

Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/main.c
kernel/power/power.h
kernel/power/user.c