mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 12:45:11 +07:00
a906086ef3
The <linux/sched/hotplug.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>
25 lines
539 B
C
25 lines
539 B
C
#ifndef _LINUX_SCHED_HOTPLUG_H
|
|
#define _LINUX_SCHED_HOTPLUG_H
|
|
|
|
/*
|
|
* Scheduler interfaces for hotplug CPU support:
|
|
*/
|
|
|
|
extern int sched_cpu_starting(unsigned int cpu);
|
|
extern int sched_cpu_activate(unsigned int cpu);
|
|
extern int sched_cpu_deactivate(unsigned int cpu);
|
|
|
|
#ifdef CONFIG_HOTPLUG_CPU
|
|
extern int sched_cpu_dying(unsigned int cpu);
|
|
#else
|
|
# define sched_cpu_dying NULL
|
|
#endif
|
|
|
|
#ifdef CONFIG_HOTPLUG_CPU
|
|
extern void idle_task_exit(void);
|
|
#else
|
|
static inline void idle_task_exit(void) {}
|
|
#endif
|
|
|
|
#endif /* _LINUX_SCHED_HOTPLUG_H */
|