mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 11:37:47 +07:00
b0145d9b33
The <linux/sched/nohz.h> file is a self-contained header and users of it either don't need <linux/sched.h> - or have already included it. This reduces the size of the header dependency graph. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
#ifndef _LINUX_SCHED_NOHZ_H
|
|
#define _LINUX_SCHED_NOHZ_H
|
|
|
|
/*
|
|
* This is the interface between the scheduler and nohz/dyntics:
|
|
*/
|
|
|
|
#if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ_COMMON)
|
|
extern void cpu_load_update_nohz_start(void);
|
|
extern void cpu_load_update_nohz_stop(void);
|
|
#else
|
|
static inline void cpu_load_update_nohz_start(void) { }
|
|
static inline void cpu_load_update_nohz_stop(void) { }
|
|
#endif
|
|
|
|
#if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ_COMMON)
|
|
extern void nohz_balance_enter_idle(int cpu);
|
|
extern void set_cpu_sd_state_idle(void);
|
|
extern int get_nohz_timer_target(void);
|
|
#else
|
|
static inline void nohz_balance_enter_idle(int cpu) { }
|
|
static inline void set_cpu_sd_state_idle(void) { }
|
|
#endif
|
|
|
|
#ifdef CONFIG_NO_HZ_COMMON
|
|
void calc_load_enter_idle(void);
|
|
void calc_load_exit_idle(void);
|
|
#else
|
|
static inline void calc_load_enter_idle(void) { }
|
|
static inline void calc_load_exit_idle(void) { }
|
|
#endif /* CONFIG_NO_HZ_COMMON */
|
|
|
|
#if defined(CONFIG_NO_HZ_COMMON) && defined(CONFIG_SMP)
|
|
extern void wake_up_nohz_cpu(int cpu);
|
|
#else
|
|
static inline void wake_up_nohz_cpu(int cpu) { }
|
|
#endif
|
|
|
|
#ifdef CONFIG_NO_HZ_FULL
|
|
extern u64 scheduler_tick_max_deferment(void);
|
|
#endif
|
|
|
|
#endif /* _LINUX_SCHED_NOHZ_H */
|