aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm34xx.c
diff options
context:
space:
mode:
authorTero Kristo <tero.kristo@nokia.com>2009-03-20 09:21:02 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-11-11 17:42:50 -0500
commitcf22854cee10e16e28b1dde136c37e82b7d503ee (patch)
treedfde2fd974b8d15d1a1a5a2c13d57d5fe9dd8e76 /arch/arm/mach-omap2/pm34xx.c
parentda869621c3cd93d5a8361f243b50e5d48d12bd14 (diff)
OMAP3: PM: Added resched check into idle calls
Fixes a bug where scheduling is delayed until next wakeup due to race condition (e.g. interrupt requests scheduling just before omap_sram_idle is entered.) Signed-off-by: Tero Kristo <tero.kristo@nokia.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm34xx.c')
-rw-r--r--arch/arm/mach-omap2/pm34xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index 4e87b61ca040..81ed252a0f8a 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -523,7 +523,7 @@ static void omap3_pm_idle(void)
523 if (!omap3_can_sleep()) 523 if (!omap3_can_sleep())
524 goto out; 524 goto out;
525 525
526 if (omap_irq_pending()) 526 if (omap_irq_pending() || need_resched())
527 goto out; 527 goto out;
528 528
529 omap_sram_idle(); 529 omap_sram_idle();