summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm34xx.c
diff options
context:
space:
mode:
authorRajendra Nayak2008-10-08 14:00:58 +0200
committerKevin Hilman2009-11-11 23:42:48 +0100
commit99e6a4d22f7c7bda0cd8978333c2e85fba02f181 (patch)
tree22a31df1b559cfa4a43a0babf23d4d84ab290a37 /arch/arm/mach-omap2/pm34xx.c
parentOMAP3: PM: Program SDRC to send self refresh on timeout of AUTO_CNT (diff)
downloadkernel-qcow2-linux-99e6a4d22f7c7bda0cd8978333c2e85fba02f181.tar.gz
kernel-qcow2-linux-99e6a4d22f7c7bda0cd8978333c2e85fba02f181.tar.xz
kernel-qcow2-linux-99e6a4d22f7c7bda0cd8978333c2e85fba02f181.zip
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 01b95eaae75a..0c49db8afa99 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);
/*