mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-01 02:29:33 +07:00

Split the CPU hotplug scheduler APIs out of the common header. 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> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
27 lines
565 B
C
27 lines
565 B
C
#ifndef _LINUX_SCHED_HOTPLUG_H
|
|
#define _LINUX_SCHED_HOTPLUG_H
|
|
|
|
#include <linux/sched.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 */
|