Skip to content

Commit c02a427

Browse files
Martins3KAGA-KOKO
authored andcommitted
tick/nohz: Remove unused tick_nohz_idle_stop_tick_protected()
All the caller has been removed since commit 336f560 ("x86/xen: don't let xen_pv_play_dead() return") Signed-off-by: Xueshi Hu <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4f7f440 commit c02a427

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

include/linux/tick.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,6 @@ extern unsigned long tick_nohz_get_idle_calls(void);
140140
extern unsigned long tick_nohz_get_idle_calls_cpu(int cpu);
141141
extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time);
142142
extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time);
143-
144-
static inline void tick_nohz_idle_stop_tick_protected(void)
145-
{
146-
local_irq_disable();
147-
tick_nohz_idle_stop_tick();
148-
local_irq_enable();
149-
}
150-
151143
#else /* !CONFIG_NO_HZ_COMMON */
152144
#define tick_nohz_enabled (0)
153145
static inline int tick_nohz_tick_stopped(void) { return 0; }
@@ -170,8 +162,6 @@ static inline ktime_t tick_nohz_get_sleep_length(ktime_t *delta_next)
170162
}
171163
static inline u64 get_cpu_idle_time_us(int cpu, u64 *unused) { return -1; }
172164
static inline u64 get_cpu_iowait_time_us(int cpu, u64 *unused) { return -1; }
173-
174-
static inline void tick_nohz_idle_stop_tick_protected(void) { }
175165
#endif /* !CONFIG_NO_HZ_COMMON */
176166

177167
#ifdef CONFIG_NO_HZ_FULL

0 commit comments

Comments
 (0)