OSDN Git Service

ARM: OMAP3: PM: cpuidle: default to C1 in next_valid_state
authorJean Pihet <jean.pihet@newoldbits.com>
Fri, 1 Jun 2012 15:11:06 +0000 (17:11 +0200)
committerKevin Hilman <khilman@ti.com>
Mon, 25 Jun 2012 18:24:24 +0000 (11:24 -0700)
commit063a5d011698950c86a01044394105605556e92c
tree2d7f3e1b5dab025013216aa4002800ac11c1eb70
parent34059a878f5cb20652cbc937f35c925f2b378831
ARM: OMAP3: PM: cpuidle: default to C1 in next_valid_state

If the next state is no found in the next_valid_state function,
fallback to the default value of C1 (which is state 0).
This prevents the use of a bogus state -1 in the rest of the cpuidle
code.

Signed-off-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/cpuidle34xx.c