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:
Richard Raya 2024-08-30 17:00:19 -03:00
parent f84f2b21dc
commit 64531b499d

View File

@ -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;
}