hotplug.h 664 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LINUX_SCHED_HOTPLUG_H
  3. #define _LINUX_SCHED_HOTPLUG_H
  4. /*
  5. * Scheduler interfaces for hotplug CPU support:
  6. */
  7. extern int sched_cpu_starting(unsigned int cpu);
  8. extern int sched_cpu_activate(unsigned int cpu);
  9. extern int sched_cpu_deactivate(unsigned int cpu);
  10. #ifdef CONFIG_HOTPLUG_CPU
  11. extern int sched_cpu_wait_empty(unsigned int cpu);
  12. extern int sched_cpu_dying(unsigned int cpu);
  13. #else
  14. # define sched_cpu_wait_empty NULL
  15. # define sched_cpu_dying NULL
  16. #endif
  17. #ifdef CONFIG_HOTPLUG_CPU
  18. extern void idle_task_exit(void);
  19. #else
  20. static inline void idle_task_exit(void) {}
  21. #endif
  22. #endif /* _LINUX_SCHED_HOTPLUG_H */