/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_SCHED_HOTPLUG_H #define _LINUX_SCHED_HOTPLUG_H /* * 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 [31mCONFIG_HOTPLUG_CPU[0m extern int sched_cpu_dying(unsigned int cpu); #else # define sched_cpu_dying NULL #endif #ifdef [31mCONFIG_HOTPLUG_CPU[0m extern void idle_task_exit(void); #else static inline void idle_task_exit(void) {} #endif #endif /* _LINUX_SCHED_HOTPLUG_H */ |