From: Sanjeev Premi Date: Thu, 28 Jan 2010 17:46:43 +0000 (+0530) Subject: OMAP3: cpuidle: Update statistics for correct state X-Git-Tag: v2.6.34-rc1~230^2~9^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af83b38613da58a221e56af676097575ce2c763;p=pandora-kernel.git OMAP3: cpuidle: Update statistics for correct state When 'enable_off_mode' is 0, the target power state for MPU and CORE was locally changed to PWRDM_POWER_RET but, the statistics are updated for idle state originally selected by the governor. This patch 'invalidates' the idle states that lead either of MPU or Core to PWRDM_POWER_OFF state when 'enable_off_mode' is '0'. The states are valid once 'enable_off_mode' is set to '1'. Added function next_valid_state() to check if current state is valid; else get the next valid state. It is called from omap3_enter_idle_bm(). Signed-off-by: Sanjeev Premi Signed-off-by: Kevin Hilman --- Reading git-diff-tree failed