Skip to content

Commit 9403408

Browse files
cloehleKAGA-KOKO
authored andcommitted
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 466a2b4 ("cpufreq: schedutil: Use idle_calls counter of the remote CPU") Signed-off-by: Christian Loehle <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 02ecee0 commit 9403408

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

include/linux/tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ extern void tick_nohz_irq_exit(void);
139139
extern bool tick_nohz_idle_got_tick(void);
140140
extern ktime_t tick_nohz_get_next_hrtimer(void);
141141
extern ktime_t tick_nohz_get_sleep_length(ktime_t *delta_next);
142-
extern unsigned long tick_nohz_get_idle_calls(void);
143142
extern unsigned long tick_nohz_get_idle_calls_cpu(int cpu);
144143
extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time);
145144
extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time);

kernel/time/tick-sched.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,20 +1385,6 @@ unsigned long tick_nohz_get_idle_calls_cpu(int cpu)
13851385
return ts->idle_calls;
13861386
}
13871387

1388-
/**
1389-
* tick_nohz_get_idle_calls - return the current idle calls counter value
1390-
*
1391-
* Called from the schedutil frequency scaling governor in scheduler context.
1392-
*
1393-
* Return: the current idle calls counter value for the current CPU
1394-
*/
1395-
unsigned long tick_nohz_get_idle_calls(void)
1396-
{
1397-
struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched);
1398-
1399-
return ts->idle_calls;
1400-
}
1401-
14021388
static void tick_nohz_account_idle_time(struct tick_sched *ts,
14031389
ktime_t now)
14041390
{

0 commit comments

Comments
 (0)