1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _LINUX_SCHED_NOHZ_H 3 #define _LINUX_SCHED_NOHZ_H 4 5 /* 6 * This is the interface between the scheduler and nohz/dynticks: 7 */ 8 9 #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ_COMMON) 10 extern void nohz_balance_enter_idle(int cpu); 11 extern int get_nohz_timer_target(void); 12 #else nohz_balance_enter_idle(int cpu)13static inline void nohz_balance_enter_idle(int cpu) { } 14 #endif 15 16 #ifdef CONFIG_NO_HZ_COMMON 17 void calc_load_nohz_start(void); 18 void calc_load_nohz_stop(void); 19 #else calc_load_nohz_start(void)20static inline void calc_load_nohz_start(void) { } calc_load_nohz_stop(void)21static inline void calc_load_nohz_stop(void) { } 22 #endif /* CONFIG_NO_HZ_COMMON */ 23 24 #if defined(CONFIG_NO_HZ_COMMON) && defined(CONFIG_SMP) 25 extern void wake_up_nohz_cpu(int cpu); 26 #else wake_up_nohz_cpu(int cpu)27static inline void wake_up_nohz_cpu(int cpu) { } 28 #endif 29 30 #endif /* _LINUX_SCHED_NOHZ_H */ 31