diff options
Diffstat (limited to 'arch/arm/mach-omap2/pm.c')
| -rw-r--r-- | arch/arm/mach-omap2/pm.c | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index c3fe8eada2c..f9e807958f3 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -68,6 +68,16 @@ static void omap2_init_processor_devices(void)  #define FORCEWAKEUP_SWITCH	0  #define LOWPOWERSTATE_SWITCH	1 +int __init omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused) +{ +	if (clkdm->flags & CLKDM_CAN_ENABLE_AUTO) +		clkdm_allow_idle(clkdm); +	else if (clkdm->flags & CLKDM_CAN_FORCE_SLEEP && +		 atomic_read(&clkdm->usecount) == 0) +		clkdm_sleep(clkdm); +	return 0; +} +  /*   * This sets pwrdm state (other than mpu & core. Currently only ON &   * RET are supported.  |