smpboot.h 601 B

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