2017-02-09 01:51:36 +08:00
|
|
|
#ifndef _LINUX_SCHED_HOTPLUG_H
|
|
|
|
#define _LINUX_SCHED_HOTPLUG_H
|
|
|
|
|
2017-02-03 21:52:01 +08:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2017-02-09 01:51:36 +08:00
|
|
|
#endif /* _LINUX_SCHED_HOTPLUG_H */
|