mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Revert "cpuidle: lpm-levels: Don't stop the tick if it's not beneficial"
This reverts commit 919384cd204127484dae1123f10a4c08ad330027. Change-Id: I0198a1118430d5310a512bf6c14884419d247a4d Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
f84f2b21dc
commit
64531b499d
@ -488,14 +488,6 @@ static bool psci_enter_sleep(struct lpm_cpu *cpu, int idx, bool from_idle)
|
||||
static int lpm_cpuidle_select(struct cpuidle_driver *drv,
|
||||
struct cpuidle_device *dev, bool *stop_tick)
|
||||
{
|
||||
#ifdef CONFIG_NO_HZ_COMMON
|
||||
ktime_t delta_next;
|
||||
s64 duration_ns = tick_nohz_get_sleep_length(&delta_next);
|
||||
|
||||
if (duration_ns <= TICK_NSEC)
|
||||
*stop_tick = false;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user