Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209509
b: refs/heads/master
c: 25bed55
h: refs/heads/master
i:
  209507: b7141af
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Len Brown committed Jul 6, 2010
1 parent 0ec1df2 commit d2cb4c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: e96c4b081df0991a57b244f68c3955a9ea00bd0a
refs/heads/master: 25bed55753b8cf243406e8837990b55946c5278d
6 changes: 2 additions & 4 deletions trunk/drivers/acpi/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ static int acpi_sleep_prepare(u32 acpi_state)

}
ACPI_FLUSH_CPU_CACHE();
acpi_enable_wakeup_device_prep(acpi_state);
#endif
printk(KERN_INFO PREFIX "Preparing to enter system sleep state S%d\n",
acpi_state);
acpi_enable_wakeup_device_prep(acpi_state);
acpi_enable_wakeup_device(acpi_state);
acpi_enter_sleep_state_prep(acpi_state);
return 0;
}
Expand Down Expand Up @@ -238,7 +239,6 @@ static int acpi_suspend_enter(suspend_state_t pm_state)
}

local_irq_save(flags);
acpi_enable_wakeup_device(acpi_state);
switch (acpi_state) {
case ACPI_STATE_S1:
barrier();
Expand Down Expand Up @@ -442,7 +442,6 @@ static int acpi_hibernation_enter(void)
ACPI_FLUSH_CPU_CACHE();

local_irq_save(flags);
acpi_enable_wakeup_device(ACPI_STATE_S4);
/* This shouldn't return. If it returns, we have a problem */
status = acpi_enter_sleep_state(ACPI_STATE_S4);
/* Reprogram control registers and execute _BFS */
Expand Down Expand Up @@ -696,7 +695,6 @@ static void acpi_power_off(void)
/* acpi_sleep_prepare(ACPI_STATE_S5) should have already been called */
printk(KERN_DEBUG "%s called\n", __func__);
local_irq_disable();
acpi_enable_wakeup_device(ACPI_STATE_S5);
acpi_enter_sleep_state(ACPI_STATE_S5);
}

Expand Down

0 comments on commit d2cb4c6

Please sign in to comment.