Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tick/nohz: Remove unused tick_nohz_idle_stop_tick_protected()

All the caller has been removed since commit 336f560a8917 ("x86/xen: don't
let xen_pv_play_dead() return")

Signed-off-by: Xueshi Hu <xueshi.hu@smartx.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230912104406.312185-5-frederic@kernel.org

authored by

Xueshi Hu and committed by
Thomas Gleixner
c02a427f 4f7f4409

-10
-10
include/linux/tick.h
··· 140 140 extern unsigned long tick_nohz_get_idle_calls_cpu(int cpu); 141 141 extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time); 142 142 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 - 151 143 #else /* !CONFIG_NO_HZ_COMMON */ 152 144 #define tick_nohz_enabled (0) 153 145 static inline int tick_nohz_tick_stopped(void) { return 0; } ··· 162 170 } 163 171 static inline u64 get_cpu_idle_time_us(int cpu, u64 *unused) { return -1; } 164 172 static inline u64 get_cpu_iowait_time_us(int cpu, u64 *unused) { return -1; } 165 - 166 - static inline void tick_nohz_idle_stop_tick_protected(void) { } 167 173 #endif /* !CONFIG_NO_HZ_COMMON */ 168 174 169 175 #ifdef CONFIG_NO_HZ_FULL