resume: Write resume_offset attribute
authorBen Hutchings <ben@decadent.org.uk>
Thu, 19 Jul 2018 19:09:28 +0000 (20:09 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 6 Jan 2019 19:33:01 +0000 (19:33 +0000)
commit5b6658a18a9895e1afcf4bb4b557c994c6d02dae
treed5dd810fd1216a92bd4aa3f4b1df959ad3ad413f
parentaaba9f339e3fc6306891582a8140570efa22cabd
resume: Write resume_offset attribute

Support for a device offset as part of the string written to
/sys/power/resume never got into a mainline kernel.

However, since Linux 4.17 there is a separate resume_offset attribute
that we can use to set the offset before attempting to resume.

Change resume() to write the resume_offset attribute instead.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Name resume-write-resume_offset-parameter.patch
usr/kinit/resume/resumelib.c