diff options
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/processor_idle.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 32003fdc91e8..1f022b0846d4 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -1420,6 +1420,14 @@ static int acpi_idle_enter_c1(struct cpuidle_device *dev, | |||
1420 | return 0; | 1420 | return 0; |
1421 | 1421 | ||
1422 | local_irq_disable(); | 1422 | local_irq_disable(); |
1423 | |||
1424 | /* Do not access any ACPI IO ports in suspend path */ | ||
1425 | if (acpi_idle_suspend) { | ||
1426 | acpi_safe_halt(); | ||
1427 | local_irq_enable(); | ||
1428 | return 0; | ||
1429 | } | ||
1430 | |||
1423 | if (pr->flags.bm_check) | 1431 | if (pr->flags.bm_check) |
1424 | acpi_idle_update_bm_rld(pr, cx); | 1432 | acpi_idle_update_bm_rld(pr, cx); |
1425 | 1433 | ||