smpboot.h 616 B

1234567891011121314151617181920212223
  1. #ifndef SMPBOOT_H
  2. #define SMPBOOT_H
  3. struct task_struct;
  4. int smpboot_prepare(unsigned int cpu);
  5. #ifdef CONFIG_GENERIC_SMP_IDLE_THREAD
  6. struct task_struct *idle_thread_get(unsigned int cpu);
  7. void idle_thread_set_boot_cpu(void);
  8. void idle_threads_init(void);
  9. #else
  10. static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; }
  11. static inline void idle_thread_set_boot_cpu(void) { }
  12. static inline void idle_threads_init(unsigned int cpu) { }
  13. #endif
  14. int smpboot_create_threads(unsigned int cpu);
  15. void smpboot_park_threads(unsigned int cpu);
  16. void smpboot_unpark_threads(unsigned int cpu);
  17. #endif