summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r--drivers/acpi/processor_idle.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 99da6a7..0cad56c 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -1416,6 +1416,9 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev,
if (unlikely(!pr))
return 0;
+ if (acpi_idle_suspend)
+ return(acpi_idle_enter_c1(dev, state));
+
if (pr->flags.bm_check)
acpi_idle_update_bm_rld(pr, cx);
@@ -1477,6 +1480,9 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev,
if (unlikely(!pr))
return 0;
+ if (acpi_idle_suspend)
+ return(acpi_idle_enter_c1(dev, state));
+
local_irq_disable();
current_thread_info()->status &= ~TS_POLLING;
/*
OpenPOWER on IntegriCloud