1 #ifndef _LINUX_SCHED_HOTPLUG_H 2 #define _LINUX_SCHED_HOTPLUG_H 3 4 #include <linux/sched.h> 5 6 /* 7 * Scheduler interfaces for hotplug CPU support: 8 */ 9 10 extern int sched_cpu_starting(unsigned int cpu); 11 extern int sched_cpu_activate(unsigned int cpu); 12 extern int sched_cpu_deactivate(unsigned int cpu); 13 14 #ifdef CONFIG_HOTPLUG_CPU 15 extern int sched_cpu_dying(unsigned int cpu); 16 #else 17 # define sched_cpu_dying NULL 18 #endif 19 20 #ifdef CONFIG_HOTPLUG_CPU 21 extern void idle_task_exit(void); 22 #else 23 static inline void idle_task_exit(void) {} 24 #endif 25 26 #endif /* _LINUX_SCHED_HOTPLUG_H */ 27