OMAP3: PM: CPUidle: check activity for C2, C3, correct accounting
authorKevin Hilman <khilman@deeprootsystems.com>
Wed, 29 Oct 2008 00:32:11 +0000 (17:32 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 11 Nov 2009 22:42:49 +0000 (14:42 -0800)
commit0f724ed92b0ad152a03b7a194815787eeeec17a4
treec0dcd5f3f90c9738c46ab112c6a6b0c971c0f9f8
parentc98e223006ffd4c5e4cd0f75c5a10bd2b45508d5
OMAP3: PM: CPUidle: check activity for C2, C3, correct accounting

Use the activity check for states C2 and C3 as well.  This is
primarily to prevent deeper states during UART activity.

Also, if a different state is chosen than the target state, update the
'last_state' accordingly so that CPUidle state accounting is coorect.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/cpuidle34xx.c