Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / include / linux / sched / hotplug.h
blob9a62ffdd296f0790974dcaf9a8c71ece11af6fbb
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_SCHED_HOTPLUG_H
3 #define _LINUX_SCHED_HOTPLUG_H
5 /*
6 * Scheduler interfaces for hotplug CPU support:
7 */
9 extern int sched_cpu_starting(unsigned int cpu);
10 extern int sched_cpu_activate(unsigned int cpu);
11 extern int sched_cpu_deactivate(unsigned int cpu);
13 #ifdef CONFIG_HOTPLUG_CPU
14 extern int sched_cpu_dying(unsigned int cpu);
15 #else
16 # define sched_cpu_dying NULL
17 #endif
19 #ifdef CONFIG_HOTPLUG_CPU
20 extern void idle_task_exit(void);
21 #else
22 static inline void idle_task_exit(void) {}
23 #endif
25 #endif /* _LINUX_SCHED_HOTPLUG_H */