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>