summaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2013-08-23 12:45:10 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-08-29 22:11:38 +0200
commit59e998561103a93f294c8d3138dd659af772a5da (patch)
treeef7bc435dbe2346af94992c06543b91d5e49164a /drivers/cpuidle
parent51f245b895e3fe4cbac0b2633e54a1830864a83f (diff)
downloadblackbird-op-linux-59e998561103a93f294c8d3138dd659af772a5da.tar.gz
blackbird-op-linux-59e998561103a93f294c8d3138dd659af772a5da.zip
cpuidle: coupled: disable interrupts after entering safe state
Calling cpuidle_enter_state is expected to return with interrupts enabled, but interrupts must be disabled before starting the ready loop synchronization stage. Call local_irq_disable after each call to cpuidle_enter_state for the safe state. Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Colin Cross <ccross@android.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r--drivers/cpuidle/coupled.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/cpuidle/coupled.c b/drivers/cpuidle/coupled.c
index 2a297f86dbad..db92bcbe6946 100644
--- a/drivers/cpuidle/coupled.c
+++ b/drivers/cpuidle/coupled.c
@@ -460,6 +460,7 @@ int cpuidle_enter_state_coupled(struct cpuidle_device *dev,
}
entered_state = cpuidle_enter_state(dev, drv,
dev->safe_state_index);
+ local_irq_disable();
}
/* Read barrier ensures online_count is read after prevent is cleared */
@@ -485,6 +486,7 @@ retry:
entered_state = cpuidle_enter_state(dev, drv,
dev->safe_state_index);
+ local_irq_disable();
}
if (cpuidle_coupled_clear_pokes(dev->cpu)) {
OpenPOWER on IntegriCloud