public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP4: cpuidle: Fix the C-state reporting to cpuidle governor.
@ 2012-02-06  9:38 Santosh Shilimkar
  2012-02-07 22:38 ` Kevin Hilman
  0 siblings, 1 reply; 4+ messages in thread
From: Santosh Shilimkar @ 2012-02-06  9:38 UTC (permalink / raw)
  To: linux-arm-kernel

OMAP4 cpuidle driver is reporting the state requested by governor rather than
the actually attempted one.

This is obviously misleading sysfs and powertop cpuidle statistics.
Fix it so that stats are reported correctly.

Reported-by: Kevin Hilman <khilman@ti•com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti•com>
---
 arch/arm/mach-omap2/cpuidle44xx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/cpuidle44xx.c b/arch/arm/mach-omap2/cpuidle44xx.c
index cfdbb86..f128489 100644
--- a/arch/arm/mach-omap2/cpuidle44xx.c
+++ b/arch/arm/mach-omap2/cpuidle44xx.c
@@ -85,6 +85,7 @@ static int omap4_enter_idle(struct cpuidle_device *dev,
 	cpu1_state = pwrdm_read_pwrst(cpu1_pd);
 	if (cpu1_state != PWRDM_POWER_OFF) {
 		new_state_idx = drv->safe_state_index;
+		index = drv->safe_state_index;
 		cx = cpuidle_get_statedata(&dev->states_usage[new_state_idx]);
 	}
 
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-14 18:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-06  9:38 [PATCH] ARM: OMAP4: cpuidle: Fix the C-state reporting to cpuidle governor Santosh Shilimkar
2012-02-07 22:38 ` Kevin Hilman
2012-02-14  8:47   ` Santosh Shilimkar
2012-02-14 18:58     ` Kevin Hilman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox