Ingo Molnar | ef8bd77 | 2017-02-08 18:51:36 +0100 | [diff] [blame] | 1 | #ifndef _LINUX_SCHED_HOTPLUG_H |
| 2 | #define _LINUX_SCHED_HOTPLUG_H |
| 3 | |
| 4 | #include <linux/sched.h> |
| 5 | |
Ingo Molnar | 0ca0156 | 2017-02-03 14:52:01 +0100 | [diff] [blame^] | 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 | |
Ingo Molnar | ef8bd77 | 2017-02-08 18:51:36 +0100 | [diff] [blame] | 26 | #endif /* _LINUX_SCHED_HOTPLUG_H */ |