hotplug.h 565 B

1234567891011121314151617181920212223242526
  1. #ifndef _LINUX_SCHED_HOTPLUG_H
  2. #define _LINUX_SCHED_HOTPLUG_H
  3. #include <linux/sched.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_dying(unsigned int cpu);
  12. #else
  13. # define sched_cpu_dying NULL
  14. #endif
  15. #ifdef CONFIG_HOTPLUG_CPU
  16. extern void idle_task_exit(void);
  17. #else
  18. static inline void idle_task_exit(void) {}
  19. #endif
  20. #endif /* _LINUX_SCHED_HOTPLUG_H */