diff mbox

[PATCHv2,1/2] OMAP3: PM: Add cpuidle C-state description information

Message ID 1266321499-11858-2-git-send-email-eduardo.valentin@nokia.com (mailing list archive)
State Changes Requested
Delegated to: Kevin Hilman
Headers show

Commit Message

Eduardo Valentin Feb. 16, 2010, 11:58 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c
index 1cfa5a6..50fe9ab 100644
--- a/arch/arm/mach-omap2/cpuidle34xx.c
+++ b/arch/arm/mach-omap2/cpuidle34xx.c
@@ -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++;
 	}