Commit 82911fe1 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

ACPI / PM: acpi_suspend_enter() need not switch interrupts off

The function acpi_suspend_enter() is always called with interrupts
off, so it doesn't need to switch them off and on.
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent c41b93fb
...@@ -243,7 +243,6 @@ static int acpi_suspend_begin(suspend_state_t pm_state) ...@@ -243,7 +243,6 @@ static int acpi_suspend_begin(suspend_state_t pm_state)
static int acpi_suspend_enter(suspend_state_t pm_state) static int acpi_suspend_enter(suspend_state_t pm_state)
{ {
acpi_status status = AE_OK; acpi_status status = AE_OK;
unsigned long flags = 0;
u32 acpi_state = acpi_target_sleep_state; u32 acpi_state = acpi_target_sleep_state;
ACPI_FLUSH_CPU_CACHE(); ACPI_FLUSH_CPU_CACHE();
...@@ -256,7 +255,6 @@ static int acpi_suspend_enter(suspend_state_t pm_state) ...@@ -256,7 +255,6 @@ static int acpi_suspend_enter(suspend_state_t pm_state)
return error; return error;
} }
local_irq_save(flags);
switch (acpi_state) { switch (acpi_state) {
case ACPI_STATE_S1: case ACPI_STATE_S1:
barrier(); barrier();
...@@ -290,7 +288,6 @@ static int acpi_suspend_enter(suspend_state_t pm_state) ...@@ -290,7 +288,6 @@ static int acpi_suspend_enter(suspend_state_t pm_state)
/* Allow EC transactions to happen. */ /* Allow EC transactions to happen. */
acpi_ec_unblock_transactions_early(); acpi_ec_unblock_transactions_early();
local_irq_restore(flags);
printk(KERN_DEBUG "Back to C!\n"); printk(KERN_DEBUG "Back to C!\n");
suspend_nvs_restore(); suspend_nvs_restore();
......
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