]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tick: Remove unnused tick_nohz_get_idle_calls()
authorChristian Loehle <christian.loehle@arm.com>
Mon, 17 Jun 2024 16:16:15 +0000 (17:16 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 21 Jun 2024 16:10:15 +0000 (18:10 +0200)
The function returns the idle calls counter for the current cpu and
therefore usually isn't what the caller wants. It is unnused since
commit 466a2b42d676 ("cpufreq: schedutil: Use idle_calls counter of the
remote CPU")

Signed-off-by: Christian Loehle <christian.loehle@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240617161615.49309-1-christian.loehle@arm.com
include/linux/tick.h
kernel/time/tick-sched.c

index 4924a33700b77721d6b27b07f9f37198a17d3886..72744638c5b0fdecf4158839c5d565ac8a666d24 100644 (file)
@@ -139,7 +139,6 @@ extern void tick_nohz_irq_exit(void);
 extern bool tick_nohz_idle_got_tick(void);
 extern ktime_t tick_nohz_get_next_hrtimer(void);
 extern ktime_t tick_nohz_get_sleep_length(ktime_t *delta_next);
-extern unsigned long tick_nohz_get_idle_calls(void);
 extern unsigned long tick_nohz_get_idle_calls_cpu(int cpu);
 extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time);
 extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time);
index 71a792cd893620eebe73eb1a0fc0c4ff5d454344..43a6370a2ebca7bc48f61278a59bdddd15a83bb1 100644 (file)
@@ -1385,20 +1385,6 @@ unsigned long tick_nohz_get_idle_calls_cpu(int cpu)
        return ts->idle_calls;
 }
 
-/**
- * tick_nohz_get_idle_calls - return the current idle calls counter value
- *
- * Called from the schedutil frequency scaling governor in scheduler context.
- *
- * Return: the current idle calls counter value for the current CPU
- */
-unsigned long tick_nohz_get_idle_calls(void)
-{
-       struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched);
-
-       return ts->idle_calls;
-}
-
 static void tick_nohz_account_idle_time(struct tick_sched *ts,
                                        ktime_t now)
 {