]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PM / hibernate: Make passing hibernate offsets more friendly
authorMario Limonciello <mario.limonciello@dell.com>
Wed, 28 Mar 2018 17:01:09 +0000 (12:01 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 3 Apr 2018 21:10:27 +0000 (16:10 -0500)
commitb598b39c270bbb50920bc8a70ea89f910e740fbe
treeb065536839482e816f562d585c8beebad0ce31a5
parented9333e1b5832aae37585fe934ca6e7fd1d5c96d
PM / hibernate: Make passing hibernate offsets more friendly

BugLink: http://bugs.launchpad.net/bugs/1760106
Currently the only way to specify a hibernate offset for a
swap file is on the kernel command line.

Add a new /sys/power/resume_offset that lets userspace
specify the offset and disk to use when initiating a hibernate
cycle.

Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 355064675f1c997cea017ea64c8f2c216e5425d9 linux-next)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Documentation/ABI/testing/sysfs-power
Documentation/power/swsusp.txt
kernel/power/hibernate.c