• Pavel Machek's avatar
    [PATCH] swsusp: enable resume from initrd · 1026f161
    Pavel Machek authored
    From: <mjg59@scrf.ucam.org>
    
    When using a fully modularized kernel it is necessary to activate resume
    manually as the device node might not be available during kernel init.
    
    This patch implements a new sysfs attribute '/sys/power/resume' which allows
    for manual activation of software resume.  When read from it prints the
    configured resume device in 'major:minor' format.  When written to it expects
    a device in 'major:minor' format.  This device is then checked for a suspended
    image and resume is started if a valid image is found.  The original
    functionality is left in place.
    
    It should be used from initramfs, or with care.
    Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
    Signed-off-by: default avatarPavel Machek <pavel@suse.cz>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    1026f161
swsusp.c 32.6 KB