]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
OMAP3: cpuidle: Update statistics for correct state
authorSanjeev Premi <premi@ti.com>
Thu, 28 Jan 2010 17:46:43 +0000 (23:16 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Tue, 23 Feb 2010 19:05:00 +0000 (11:05 -0800)
commit6af83b38613da58a221e56af676097575ce2c763
treeda9cbc660ff2c7267782c57bf1cf5e655bf1983c
parent80c20d543d142ee54ec85259b77aaf0b83c32db5
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 <premi@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/cpuidle34xx.c
arch/arm/mach-omap2/pm.h
arch/arm/mach-omap2/pm34xx.c