summaryrefslogtreecommitdiff
path: root/kernel/time
diff options
context:
space:
mode:
authorChristian Loehle <christian.loehle@arm.com>2024-06-17 17:16:15 +0100
committerThomas Gleixner <tglx@linutronix.de>2024-06-21 18:10:15 +0200
commit9403408e122628a6dc7154a95716f00dae3747c7 (patch)
treec8980103931c7287d6f3ef9c2f8af43c37a79fb7 /kernel/time
parent02ecee07ca30f76f2a0f1381661a688b8e501ab0 (diff)
tick: Remove unnused tick_nohz_get_idle_calls()
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
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/tick-sched.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 71a792cd8936..43a6370a2ebc 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -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)
{