Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4252
b: refs/heads/master
c: 3efa147
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Machek authored and Linus Torvalds committed Jul 8, 2005
1 parent 05aa5f6 commit 1d5c899
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e00d9967e3addea86dded46deefc5daec5d52e5a
refs/heads/master: 3efa147ad7608196639882ba4075b376f306fe16
10 changes: 10 additions & 0 deletions trunk/kernel/power/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,16 @@ static int software_resume(void)
{
int error;

if (!swsusp_resume_device) {
if (!strlen(resume_file))
return -ENOENT;
swsusp_resume_device = name_to_dev_t(resume_file);
pr_debug("swsusp: Resume From Partition %s\n", resume_file);
} else {
pr_debug("swsusp: Resume From Partition %d:%d\n",
MAJOR(swsusp_resume_device), MINOR(swsusp_resume_device));
}

if (noresume) {
/**
* FIXME: If noresume is specified, we need to find the partition
Expand Down
10 changes: 0 additions & 10 deletions trunk/kernel/power/swsusp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1356,16 +1356,6 @@ int swsusp_check(void)
{
int error;

if (!swsusp_resume_device) {
if (!strlen(resume_file))
return -ENOENT;
swsusp_resume_device = name_to_dev_t(resume_file);
pr_debug("swsusp: Resume From Partition %s\n", resume_file);
} else {
pr_debug("swsusp: Resume From Partition %d:%d\n",
MAJOR(swsusp_resume_device), MINOR(swsusp_resume_device));
}

resume_bdev = open_by_devnum(swsusp_resume_device, FMODE_READ);
if (!IS_ERR(resume_bdev)) {
set_blocksize(resume_bdev, PAGE_SIZE);
Expand Down

0 comments on commit 1d5c899

Please sign in to comment.