Skip to contentSkip to conversation

OMAP: couple more PM fixes for 2.6.37

GIT PULL New Kevin Hilman 1 participant 3 messages Oct 1, 2010

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Tony,

Here are a couple more PM related fixes for 2.6.37. The one from Lo?c fixes one of the compile errors that's been reported a couple times now.

This branch is based on my pm-next branch which is already pulled into your omap-for-linus branch, so should merge smoothly

Kevin

The following changes since commit 0aed043517ad4135cb458a46e9e99e21cbb59c69:

OMAP: GPIO: ensure debounce clocks are disabled during idle/suspend (2010-09-23 17:14:17 -0700)

are available in the git repository at:
ssh://master.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git pm-next-2

Kevin Hilman (1):
OMAP3: CPUidle: remove redundant setting of PER next power state

Lo?c Minier (1):
OMAP: PM: Fix build when CONFIG_PM_DEBUG isn't set

 arch/arm/mach-omap2/cpuidle34xx.c |    4 +---
 arch/arm/mach-omap2/pm.h          |    7 ++++---
 2 files changed, 5 insertions(+), 6 deletions(-)
#1 lore raw

PATCH 1/2 OMAP3: CPUidle: remove redundant setting of PER next power state

When checking how to program the next powerstate for the PER powerdomain, the next state of PER powerdomain was written twice. Remove the duplicate write.

---
 arch/arm/mach-omap2/cpuidle34xx.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/cpuidle34xx.c +1 -3
index 8ea012e..703b5ec 100644
@@ -272,10 +272,8 @@ static int omap3_enter_idle_bm(struct cpuidle_device *dev,
 	 */
 	per_next_state = per_saved_state = pwrdm_read_next_pwrst(per_pd);
 	if ((per_next_state == PWRDM_POWER_OFF) &&
-	    (core_next_state > PWRDM_POWER_RET)) {
+	    (core_next_state > PWRDM_POWER_RET))
 		per_next_state = PWRDM_POWER_RET;
-		pwrdm_set_next_pwrst(per_pd, per_next_state);
-	}
 
 	/* Are we changing PER target state? */
 	if (per_next_state != per_saved_state)
Signature · 1 line
1.7.2.1
#2 lore raw

PATCH 2/2 OMAP: PM: Fix build when CONFIG_PM_DEBUG isn't set

In reply to Kevin Hilman

From: Lo?c Minier <[email protected]>

Since 6cdee91257bee23a46dc869ca62469b67cba2c7e the references to enable_off_mode and sleep_while_idle can't be resolved when CONFIG_PM_DEBUG isn't set:
arch/arm/mach-omap2/built-in.o: In function `omap_uart_restore_context':
arch/arm/mach-omap2/serial.c:253: undefined reference to enable_off_mode' arch/arm/mach-omap2/built-in.o: In function omap3_can_sleep':
arch/arm/mach-omap2/pm34xx.c:479: undefined reference to `sleep_while_idle'

Simply #define these in pm.h just like omap2_pm_debug.

[khilman: moved down into existing #ifdef section]
---
 arch/arm/mach-omap2/pm.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/pm.h +4 -3
index 77770a1..0d75bfd 100644
@@ -13,9 +13,6 @@
 
 #include <plat/powerdomain.h>
 
-extern u32 enable_off_mode;
-extern u32 sleep_while_idle;
-
 extern void *omap3_secure_ram_storage;
 extern void omap3_pm_off_mode_enable(int);
 extern void omap_sram_idle(void);
@@ -50,10 +47,14 @@ extern struct omap_dm_timer *gptimer_wakeup;
 extern void omap2_pm_dump(int mode, int resume, unsigned int us);
 extern void omap2_pm_wakeup_on_timer(u32 seconds, u32 milliseconds);
 extern int omap2_pm_debug;
+extern u32 enable_off_mode;
+extern u32 sleep_while_idle;
 #else
 #define omap2_pm_dump(mode, resume, us)		do {} while (0);
 #define omap2_pm_wakeup_on_timer(seconds, milliseconds)	do {} while (0);
 #define omap2_pm_debug				0
+#define enable_off_mode 0
+#define sleep_while_idle 0
 #endif
 
 #if defined(CONFIG_CPU_IDLE)
Signature · 1 line
1.7.2.1