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