]> git.baikalelectronics.ru Git - kernel.git/commit
Hibernation: Rework platform support ioctls (rev. 2)
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 25 Oct 2007 23:01:10 +0000 (01:01 +0200)
committerLen Brown <len.brown@intel.com>
Fri, 1 Feb 2008 23:30:53 +0000 (18:30 -0500)
commit289733058829d4a933101e96ee1d17aabfd786ff
treedf8abba4265647f15b3b30053a4d843099bb6b9e
parent85606eff8538509cb242e2099145f6448d1e4c97
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