summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm34xx.c
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2008-10-08 17:30:58 +0530
committerKevin Hilman <khilman@deeprootsystems.com>2009-11-11 14:42:48 -0800
commit99e6a4d22f7c7bda0cd8978333c2e85fba02f181 (patch)
tree22a31df1b559cfa4a43a0babf23d4d84ab290a37 /arch/arm/mach-omap2/pm34xx.c
parentf265dc4c5d39f2bd369d97c87a7bd89061b159d4 (diff)
OMAP3: PM: CPUidle: base driver and support for C1-C2
Basic CPUidle driver for OMAP3 with deepest sleep state supported being MPU CSWR. Signed-off-by: Rajendra Nayak <rnayak@ti.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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index 01b95eaae75..0c49db8afa9 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -318,7 +318,7 @@ static void restore_table_entry(void)
restore_control_register(control_reg_value);
}
-static void omap_sram_idle(void)
+void omap_sram_idle(void)
{
/* Variable to tell what needs to be saved and restored
* in omap_sram_idle*/
@@ -1101,7 +1101,9 @@ static int __init omap3_pm_init(void)
suspend_set_ops(&omap_pm_ops);
#endif /* CONFIG_SUSPEND */
+#ifndef CONFIG_CPU_IDLE
pm_idle = omap3_pm_idle;
+#endif
pwrdm_add_wkdep(neon_pwrdm, mpu_pwrdm);
/*