Commit acddc018 authored by Patrick Mochel's avatar Patrick Mochel

[Power Mgmt] Make default partition config option part of swsusp.

- Remove from pmdisk.
- Remove pmdisk= command line option.
parent c3c080ba
...@@ -54,12 +54,12 @@ config PM_DISK ...@@ -54,12 +54,12 @@ config PM_DISK
If unsure, Say N. If unsure, Say N.
config PM_DISK_PARTITION config PM_STD_PARTITION
string "Default resume partition" string "Default resume partition"
depends on PM_DISK depends on SOFTWARE_SUSPEND
default "" default ""
---help--- ---help---
The default resume partition is the partition that the pmdisk suspend- The default resume partition is the partition that the suspend-
to-disk implementation will look for a suspended disk image. to-disk implementation will look for a suspended disk image.
The partition specified here will be different for almost every user. The partition specified here will be different for almost every user.
...@@ -68,16 +68,10 @@ config PM_DISK_PARTITION ...@@ -68,16 +68,10 @@ config PM_DISK_PARTITION
The partition specified can be overridden by specifying: The partition specified can be overridden by specifying:
pmdisk=/dev/<other device> resume=/dev/<other device>
which will set the resume partition to the device specified. which will set the resume partition to the device specified.
One may also do:
pmdisk=off
to inform the kernel not to perform a resume transition.
Note there is currently not a way to specify which device to save the Note there is currently not a way to specify which device to save the
suspended image to. It will simply pick the first available swap suspended image to. It will simply pick the first available swap
device. device.
......
...@@ -33,26 +33,3 @@ ...@@ -33,26 +33,3 @@
#include "power.h" #include "power.h"
/* For resume= kernel option */
static char resume_file[256] = CONFIG_PM_DISK_PARTITION;
extern suspend_pagedir_t *pagedir_save;
/*
* Saving part...
*/
static int __init pmdisk_setup(char *str)
{
if (strlen(str)) {
if (!strcmp(str,"off"))
resume_file[0] = '\0';
else
strncpy(resume_file, str, 255);
} else
resume_file[0] = '\0';
return 1;
}
__setup("pmdisk=", pmdisk_setup);
...@@ -89,7 +89,7 @@ int pagedir_order_check; ...@@ -89,7 +89,7 @@ int pagedir_order_check;
int nr_copy_pages_check; int nr_copy_pages_check;
static int resume_status; static int resume_status;
static char resume_file[256] = ""; /* For resume= kernel option */ static char resume_file[256] = CONFIG_PM_STD_PARTITION;
static dev_t resume_device; static dev_t resume_device;
/* Local variables that should not be affected by save */ /* Local variables that should not be affected by save */
unsigned int nr_copy_pages __nosavedata = 0; unsigned int nr_copy_pages __nosavedata = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment