Hibernation: Rework platform support ioctls (rev. 2)
commiteb57c1cf059630454b40fb8bb124e3f318d241f8
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 25 Oct 2007 23:01:10 +0000 (26 01:01 +0200)
committerLen Brown <len.brown@intel.com>
Fri, 1 Feb 2008 23:30:53 +0000 (1 18:30 -0500)
treedf8abba4265647f15b3b30053a4d843099bb6b9e
parentaf508b34d27e3341287d89e0eae6752fdb1b873f
Hibernation: Rework platform support ioctls (rev. 2)

Modify the hibernation userland interface by adding two new ioctls to it,
SNAPSHOT_PLATFORM_SUPPORT and SNAPSHOT_POWER_OFF, that can be used,
respectively, to switch the hibernation platform support on/off and to make the
kernel transition the system to the hibernation state (eg. ACPI S4) using the
platform (eg. ACPI) driver.

These ioctls are intended to replace the misdesigned SNAPSHOT_PMOPS ioctl,
which from now is regarded as obsolete and will be removed in the future.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Len Brown <len.brown@intel.com>
Documentation/power/userland-swsusp.txt
kernel/power/power.h
kernel/power/user.c