blob: 752ac7e628d72ee61e6f4825852a000d0a0868ef [file] [log] [blame]
Ingo Molnaref8bd772017-02-08 18:51:36 +01001#ifndef _LINUX_SCHED_HOTPLUG_H
2#define _LINUX_SCHED_HOTPLUG_H
3
Ingo Molnar0ca01562017-02-03 14:52:01 +01004/*
5 * Scheduler interfaces for hotplug CPU support:
6 */
7
8extern int sched_cpu_starting(unsigned int cpu);
9extern int sched_cpu_activate(unsigned int cpu);
10extern int sched_cpu_deactivate(unsigned int cpu);
11
12#ifdef CONFIG_HOTPLUG_CPU
13extern int sched_cpu_dying(unsigned int cpu);
14#else
15# define sched_cpu_dying NULL
16#endif
17
18#ifdef CONFIG_HOTPLUG_CPU
19extern void idle_task_exit(void);
20#else
21static inline void idle_task_exit(void) {}
22#endif
23
Ingo Molnaref8bd772017-02-08 18:51:36 +010024#endif /* _LINUX_SCHED_HOTPLUG_H */