aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@google.com>2011-07-22 00:09:54 -0500
committerColin Cross <ccross@android.com>2011-07-21 22:23:39 -0700
commita9458e9f796f16fc4aac8f0bf32f7623febb1f74 (patch)
tree16e4c0cf77b7b85fa52c1702889b2aed7537def8
parent5913dfa28cdc5199763b4093ccb61d7c65ca81fe (diff)
downloadkernel_samsung_tuna-a9458e9f796f16fc4aac8f0bf32f7623febb1f74.zip
kernel_samsung_tuna-a9458e9f796f16fc4aac8f0bf32f7623febb1f74.tar.gz
kernel_samsung_tuna-a9458e9f796f16fc4aac8f0bf32f7623febb1f74.tar.bz2
OMAP3+: PM: SR: use put_sync_suspend for disabling
omap_sr_disable_reset_volt is called with irqs off in omapx_enter_sleep, as part of idle sequence, this eventually calls sr_disable and pm_runtime_put_sync. PM_runtime_put_sync calls rpm_idle, which will enable interrupts in order to call the callback. In this short interval when interrupts are enabled, scenarios such as the following can occur: while interrupts are enabled, the timer interrupt that is supposed to wake the device out of idle occurs and is acked, so when the CPU finally goes to off, the timer is already gone, missing a wakeup event. Further, as the documentation for runtime states:" However, subsystems can use the pm_runtime_irq_safe() helper function to tell the PM core that a device's ->runtime_suspend() and ->runtime_resume() callbacks should be invoked in atomic context with interrupts disabled (->runtime_idle() is still invoked the default way)." Hence, replace pm_runtime_put_sync with pm_runtime_put_sync_suspend to invoke the suspend handler and shut off the fclk for SmartReflex module instead of the idle handler. Change-Id: I998ab89e55a4d65404d58b9e960116fd92b2fc14 Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Colin Cross <ccross@android.com>
-rw-r--r--arch/arm/mach-omap2/smartreflex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
index 444c5b2..bb606c9 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -622,7 +622,7 @@ void sr_disable(struct voltagedomain *voltdm)
sr_v2_disable(sr);
}
- pm_runtime_put_sync(&sr->pdev->dev);
+ pm_runtime_put_sync_suspend(&sr->pdev->dev);
}
/**