]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 30 Mar 2018 10:01:20 +0000 (12:01 +0200)
commit355064675f1c997cea017ea64c8f2c216e5425d9
tree71dcf9924f7878f793cb72f21f69fad606523b1f
parentdbdd0f58fd2cdde5cf945c9da67a2d52d32ba550
PM / hibernate: Make passing hibernate offsets more friendly

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>
Documentation/ABI/testing/sysfs-power
Documentation/power/swsusp.txt
kernel/power/hibernate.c