]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpuidle: refactor out cpuidle_enter_state
authorColin Cross <ccross@android.com>
Wed, 14 Mar 2012 18:29:50 +0000 (11:29 -0700)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 29 Jun 2012 09:40:27 +0000 (11:40 +0200)
commita95744b0f64d4e5d4725560a3f7b86617c2cf31c
tree6a7f4626862eab4e70fa221615cba929dc6cb53b
parent9acc7bde23ebb19a704395f76490685e1513e422
cpuidle: refactor out cpuidle_enter_state

Split the code to enter a state and update the stats into a helper
function, cpuidle_enter_state, and export it.  This function will
be called by the coupled state code to handle entering the safe
state and the final coupled state.

Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-by: Kevin Hilman <khilman@ti.com>
Reviewed-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/cpuidle/cpuidle.c
drivers/cpuidle/cpuidle.h