diff options
author | Jouni Hogander <jouni.hogander@nokia.com> | 2008-10-28 04:59:05 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-11-11 17:42:50 -0500 |
commit | 7139178e9baf44dab454b757ed91a9ee149ad0f2 (patch) | |
tree | a19632430149e565875865dca6507ced6b55daa3 /arch/arm/mach-omap2/cpuidle34xx.c | |
parent | 8e431edb60ef175e6aa986e8260b23cc267a13fb (diff) |
OMAP3: PM: Use pwrdm_set_next_pwrst instead of set_pwrdm_state in idle loop
It is more efficient to use pwrdm_set_next_pwrst for mpu, core and neon
instead of set_pwrdm_state in idle loop. It is anyway known that those are
active in idle loop. So no need to use set_pwrdm_state.
Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/cpuidle34xx.c')
-rw-r--r-- | arch/arm/mach-omap2/cpuidle34xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c index 5128b8c26b09..1d10c4aa9352 100644 --- a/arch/arm/mach-omap2/cpuidle34xx.c +++ b/arch/arm/mach-omap2/cpuidle34xx.c | |||
@@ -110,8 +110,8 @@ static int omap3_enter_idle(struct cpuidle_device *dev, | |||
110 | core_state = PWRDM_POWER_RET; | 110 | core_state = PWRDM_POWER_RET; |
111 | } | 111 | } |
112 | 112 | ||
113 | set_pwrdm_state(mpu_pd, mpu_state); | 113 | pwrdm_set_next_pwrst(mpu_pd, mpu_state); |
114 | set_pwrdm_state(core_pd, core_state); | 114 | pwrdm_set_next_pwrst(core_pd, core_state); |
115 | 115 | ||
116 | if (omap_irq_pending()) | 116 | if (omap_irq_pending()) |
117 | goto return_sleep_time; | 117 | goto return_sleep_time; |