diff options
author | Tero Kristo <t-kristo@ti.com> | 2016-06-30 16:15:02 +0300 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-07-04 17:15:38 +0300 |
commit | 1d9a5425654de6bb141c7ca1d5dde120ee8c5430 (patch) | |
tree | 84103ff301ecc87ba48339240b5b06ad1e816c4b /arch/arm/mach-omap2/cpuidle44xx.c | |
parent | e98580e880fb88810a1cd2a1a2583371fc0aa19e (diff) | |
download | linux-1d9a5425654de6bb141c7ca1d5dde120ee8c5430.tar.xz |
ARM: OMAP2+: clockdomain: add usecounting support to autoidle APIs
The previous implementation was racy in many locations, where the current
status of the clockdomain was read out, some operations were executed,
and the previous status info was used afterwards to decide next state
for the clockdomain. Instead, fix the implementation of the allow_idle /
deny_idle APIs to properly have usecounting support. This allows clean
handling internally within the clockdomain core, and simplifies the
usage also within hwmod.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/cpuidle44xx.c')
-rw-r--r-- | arch/arm/mach-omap2/cpuidle44xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/cpuidle44xx.c b/arch/arm/mach-omap2/cpuidle44xx.c index 4b8e9f4d59ea..fa138d4032b6 100644 --- a/arch/arm/mach-omap2/cpuidle44xx.c +++ b/arch/arm/mach-omap2/cpuidle44xx.c @@ -140,7 +140,7 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev, mpuss_can_lose_context) gic_dist_disable(); - clkdm_wakeup(cpu_clkdm[1]); + clkdm_deny_idle(cpu_clkdm[1]); omap_set_pwrdm_state(cpu_pd[1], PWRDM_POWER_ON); clkdm_allow_idle(cpu_clkdm[1]); |