diff options
Diffstat (limited to 'arch/arm/mach-ux500/cpuidle.c')
-rwxr-xr-x | arch/arm/mach-ux500/cpuidle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/cpuidle.c b/arch/arm/mach-ux500/cpuidle.c index 58a031ee93a..447d10a1e18 100755 --- a/arch/arm/mach-ux500/cpuidle.c +++ b/arch/arm/mach-ux500/cpuidle.c @@ -161,6 +161,8 @@ static int u8500_enter_idle(struct cpuidle_device *dev, int ret = 0; cstate = cpuidle_get_statedata(state); + local_irq_disable(); + if (cstate->type == U8500_CSTATE_C1) ret = wfi_idle(dev, state); @@ -170,6 +172,8 @@ static int u8500_enter_idle(struct cpuidle_device *dev, if (cstate->type == U8500_CSTATE_C0) ret = poll_idle(dev, state); + local_irq_enable(); + return ret; } |