]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
cpuidle/coupled: Remove cpuidle_device::safe_state_index
authorXunlei Pang <pang.xunlei@linaro.org>
Tue, 4 Aug 2015 05:48:55 +0000 (13:48 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 28 Aug 2015 13:14:54 +0000 (15:14 +0200)
commitba6a860d41ed3a377d61d59d7c7b08dd7455c686
tree0bf344764a4937b17297b07386c688d3237a33e6
parentc75b89ebff52f758e2559664b2ae3ceed410da30
cpuidle/coupled: Remove cpuidle_device::safe_state_index

cpuidle_device::safe_state_index need to be initialized before
use, it should be the same as cpuidle_driver::safe_state_index.

We tackled this issue by removing the safe_state_index from the
cpuidle_device structure and use the one in the cpuidle_driver
structure instead.

Suggested-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/coupled.c
include/linux/cpuidle.h