Skip to contentSkip to conversation

OMAP3: PM: Add cpuidle C-state description information

RFC PATCH Superseded Eduardo Valentin 1 participant 1 message Feb 16, 2010

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 OMAP3: PM: Add cpuidle C-state description information

From: Eduardo Valentin <[email protected]>

Add a basic description information for each cpuidle C-state. The info contains only which state the MPU, NEON and CORE power domains should reach when the C-state is selected.

---
 arch/arm/mach-omap2/cpuidle34xx.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/cpuidle34xx.c +4 -0
index 1cfa5a6..50fe9ab 100644
@@ -339,6 +339,7 @@ struct cpuidle_driver omap3_idle_driver = {
  */
 int __init omap3_idle_init(void)
 {
+	const char *pd_states[4] = {"OFF", "RET", "INA", "ON "};
 	int i, count = 0;
 	struct omap3_processor_cx *cx;
 	struct cpuidle_state *state;
@@ -367,6 +368,9 @@ int __init omap3_idle_init(void)
 		if (cx->type == OMAP3_STATE_C1)
 			dev->safe_state = state;
 		sprintf(state->name, "C%d", count+1);
+		sprintf(state->desc, "MPU=%s NEON=%s CORE=%s",
+			pd_states[cx->mpu_state], pd_states[cx->mpu_state],
+			pd_states[cx->core_state]);
 		count++;
 	}
 
Signature · 1 line
1.6.5.7.g9ecb2