smpboot.h 465 B

123456789101112131415161718
  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(void) { }
  13. #endif
  14. #endif