]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpuidle / menu: Return (-1) if there are no suitable states
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Apr 2014 22:14:04 +0000 (00:14 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Apr 2014 22:14:04 +0000 (00:14 +0200)
commit3836785a1bdcd6706c68ad46bf53adc0b057b310
tree874d51f7408229396b15dd1cbe76e0cc52744b87
parent52c324f8a87b336496d0f5e9d8dff1aa32bb08cd
cpuidle / menu: Return (-1) if there are no suitable states

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>
drivers/cpuidle/governors/menu.c