From 64531b499d7900f5f4cd312f1ad442f892553123 Mon Sep 17 00:00:00 2001 From: Richard Raya Date: Fri, 30 Aug 2024 17:00:19 -0300 Subject: [PATCH] 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 --- drivers/cpuidle/lpm-levels.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/cpuidle/lpm-levels.c b/drivers/cpuidle/lpm-levels.c index 6b28711868f8..506d9f50a9ca 100644 --- a/drivers/cpuidle/lpm-levels.c +++ b/drivers/cpuidle/lpm-levels.c @@ -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; }