Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26979
b: refs/heads/master
c: 0fba3a1
h: refs/heads/master
i:
  26977: 25be7b7
  26975: a062af8
v: v3
  • Loading branch information
Johannes Berg authored and Linus Torvalds committed May 26, 2006
1 parent 74e1a68 commit 5e81111
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3ac8141366932a74fd8620afaebd66960c91196d
refs/heads/master: 0fba3a1f39f8b0a50b56c8b068fa52131cbc84c2
12 changes: 12 additions & 0 deletions trunk/arch/powerpc/platforms/powermac/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,23 @@ static int pmac_pm_finish(suspend_state_t state)
return 0;
}

static int pmac_pm_valid(suspend_state_t state)
{
switch (state) {
case PM_SUSPEND_DISK:
return 1;
/* can't do any other states via generic mechanism yet */
default:
return 0;
}
}

static struct pm_ops pmac_pm_ops = {
.pm_disk_mode = PM_DISK_SHUTDOWN,
.prepare = pmac_pm_prepare,
.enter = pmac_pm_enter,
.finish = pmac_pm_finish,
.valid = pmac_pm_valid,
};

#endif /* CONFIG_SOFTWARE_SUSPEND */
Expand Down

0 comments on commit 5e81111

Please sign in to comment.