diff mbox

[PATCHv2,2/2] OMAP3: PM: Consistently report cpuidle C-state's names

Message ID 1266321499-11858-3-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 50fe9ab..7ab9992 100644
--- a/arch/arm/mach-omap2/cpuidle34xx.c
+++ b/arch/arm/mach-omap2/cpuidle34xx.c
@@ -367,7 +367,7 @@  int __init omap3_idle_init(void)
 			omap3_enter_idle_bm : omap3_enter_idle;
 		if (cx->type == OMAP3_STATE_C1)
 			dev->safe_state = state;
-		sprintf(state->name, "C%d", count+1);
+		sprintf(state->name, "C%d", cx->type + 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]);