Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_SCHED_HOTPLUG_H
0003 #define _LINUX_SCHED_HOTPLUG_H
0004 
0005 /*
0006  * Scheduler interfaces for hotplug CPU support:
0007  */
0008 
0009 extern int sched_cpu_starting(unsigned int cpu);
0010 extern int sched_cpu_activate(unsigned int cpu);
0011 extern int sched_cpu_deactivate(unsigned int cpu);
0012 
0013 #ifdef CONFIG_HOTPLUG_CPU
0014 extern int sched_cpu_wait_empty(unsigned int cpu);
0015 extern int sched_cpu_dying(unsigned int cpu);
0016 #else
0017 # define sched_cpu_wait_empty   NULL
0018 # define sched_cpu_dying    NULL
0019 #endif
0020 
0021 #ifdef CONFIG_HOTPLUG_CPU
0022 extern void idle_task_exit(void);
0023 #else
0024 static inline void idle_task_exit(void) {}
0025 #endif
0026 
0027 #endif /* _LINUX_SCHED_HOTPLUG_H */