backport cpuidle from msm 3.0.8