Re: [PATCH] power/hibernate: Make passing hibernate offsets more friendly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, March 6, 2018 11:53:40 AM CET Mario Limonciello wrote:
> Currently the only way to specify a hibernate offset for a
> swap file is on the kernel command line.
> 
> Add a new /sys/power/disk_offset that lets userspace
> specify the offset and disk to use when initiating a hibernate
> cycle.
> 
> Also split up the parsing routine to re-use the same code
> for the /sys/power/resume and /sys/power/disk_offset parsing.
> 
> Signed-off-by: Mario Limonciello <mario.limonciello@xxxxxxxx>

Well, IMO /sys/power/resume and /sys/power/disk_offset would be confusingly
similar after this patch.

I wonder if adding a resume_offset sysfs attr to simply allow the value of
resume offset alone to be passed to the kernel at run time (in addition to
the command line) would work?

Thanks!

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux