android_kernel_samsung_msm8976/drivers/cpuidle
Rafael J. Wysocki c24d75b729 cpuidle / menu: Return (-1) if there are no suitable states
commit 3836785a1bdcd6706c68ad46bf53adc0b057b310 upstream.

If there is a PM QoS latency limit and all of the sufficiently shallow
C-states are disabled, the cpuidle menu governor returns 0 which on
some systems is CPUIDLE_DRIVER_STATE_START and shouldn't be returned
if that C-state has been disabled.

Fix the issue by modifying the menu governor to return (-1) in such
situations.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
[shilpab: Backport to 3.10.y
 - adjust context
 - add a check if 'next_state' is less than 0 in 'cpuidle_idle_call()',
   this ensures that we exit 'cpuidle_idle_call()' if governor->select()
   returns  negative value]
Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-08-03 09:29:41 -07:00
..
governors cpuidle / menu: Return (-1) if there are no suitable states 2015-08-03 09:29:41 -07:00
coupled.c cpuidle: coupled: fix race condition between pokes and safe state 2013-09-26 17:18:02 -07:00
cpuidle-calxeda.c cpuidle: add maintainer entry 2013-04-26 22:30:25 +02:00
cpuidle-kirkwood.c cpuidle: add maintainer entry 2013-04-26 22:30:25 +02:00
cpuidle.c cpuidle / menu: Return (-1) if there are no suitable states 2015-08-03 09:29:41 -07:00
cpuidle.h
driver.c cpuidle: Check the result of cpuidle_get_driver() against NULL 2014-04-14 06:42:15 -07:00
governor.c
Kconfig cpuidle / kirkwood: remove redundant Kconfig option 2013-04-01 01:10:27 +02:00
Makefile cpuidle / kirkwood: remove redundant Kconfig option 2013-04-01 01:10:27 +02:00
sysfs.c