Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62905
b: refs/heads/master
c: 50ad147
h: refs/heads/master
i:
  62903: 6b88887
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Len Brown committed Jul 24, 2007
1 parent 01f2f16 commit 1ca733d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 10b3dcae0f275e2546e55303d64ddbb58cec7599
refs/heads/master: 50ad147aa09c829cd452fae6ca99396c0b5b0695
9 changes: 4 additions & 5 deletions trunk/drivers/acpi/sleep/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ static int acpi_pm_prepare(suspend_state_t pm_state)
* acpi_pm_enter - Actually enter a sleep state.
* @pm_state: ignored
*
* Flush caches and go to sleep. For STR or S2, we have to call
* arch-specific assembly, which in turn call acpi_enter_sleep_state().
* Flush caches and go to sleep. For STR we have to call arch-specific
* assembly, which in turn call acpi_enter_sleep_state().
* It's unfortunate, but it works. Please fix if you're feeling frisky.
*/

Expand All @@ -95,7 +95,7 @@ static int acpi_pm_enter(suspend_state_t pm_state)
ACPI_FLUSH_CPU_CACHE();

/* Do arch specific saving of state. */
if (acpi_state == ACPI_STATE_S2 || acpi_state == ACPI_STATE_S3) {
if (acpi_state == ACPI_STATE_S3) {
int error = acpi_save_state_mem();

if (error) {
Expand All @@ -112,7 +112,6 @@ static int acpi_pm_enter(suspend_state_t pm_state)
status = acpi_enter_sleep_state(acpi_state);
break;

case ACPI_STATE_S2:
case ACPI_STATE_S3:
do_suspend_lowlevel();
break;
Expand All @@ -129,7 +128,7 @@ static int acpi_pm_enter(suspend_state_t pm_state)
printk(KERN_DEBUG "Back to C!\n");

/* restore processor state */
if (acpi_state == ACPI_STATE_S2 || acpi_state == ACPI_STATE_S3)
if (acpi_state == ACPI_STATE_S3)
acpi_restore_state_mem();

return ACPI_SUCCESS(status) ? 0 : -EFAULT;
Expand Down

0 comments on commit 1ca733d

Please sign in to comment.