summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorPavel Machek <pavel@suse.cz>2005-03-13 00:25:15 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-03-13 00:25:15 -0800
commit1026f161d01dc816be109869ac6c557ff4370c92 (patch)
treee77198fe3335a5c9a301d6a8500fdd44e61c536f /init
parent4a408c2f6f0465ad7887931e1a4fe881e5a16258 (diff)
[PATCH] swsusp: enable resume from initrd
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: Hannes Reinecke <hare@suse.de> Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'init')
-rw-r--r--init/do_mounts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c
index 185794fcd01c..b7570c074d0f 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -53,7 +53,7 @@ static int __init readwrite(char *str)
__setup("ro", readonly);
__setup("rw", readwrite);
-static dev_t __init try_name(char *name, int part)
+static dev_t try_name(char *name, int part)
{
char path[64];
char buf[32];
@@ -135,7 +135,7 @@ fail:
* is mounted on rootfs /sys.
*/
-dev_t __init name_to_dev_t(char *name)
+dev_t name_to_dev_t(char *name)
{
char s[32];
char *p;