Commit 6ca21f2a authored by Todd Poynor's avatar Todd Poynor Committed by Tony Lindgren

[PATCH] ARM: OMAP: omap_pm_idle interrupt race?

Move OMAP pm_idle interrupt reenable until after the next interrupt has
arrived, avoid situation where multiple interrupts are needed to exit
idle.
Signed-off-by: default avatarTodd Poynor <tpoynor@mvista.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 15dc0cde
...@@ -89,8 +89,6 @@ void omap_pm_idle(void) ...@@ -89,8 +89,6 @@ void omap_pm_idle(void)
return; return;
} }
mask32 = omap_readl(ARM_SYSST); mask32 = omap_readl(ARM_SYSST);
local_fiq_enable();
local_irq_enable();
#if defined(CONFIG_OMAP_32K_TIMER) && defined(CONFIG_NO_IDLE_HZ) #if defined(CONFIG_OMAP_32K_TIMER) && defined(CONFIG_NO_IDLE_HZ)
timer_dyn_reprogram(); timer_dyn_reprogram();
...@@ -107,6 +105,9 @@ void omap_pm_idle(void) ...@@ -107,6 +105,9 @@ void omap_pm_idle(void)
__asm__ volatile ("mcr p15, 0, r0, c7, c0, 4"); __asm__ volatile ("mcr p15, 0, r0, c7, c0, 4");
} else } else
omap_sram_idle(); omap_sram_idle();
local_fiq_enable();
local_irq_enable();
} }
/* /*
......
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