smpboot.h 640 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef SMPBOOT_H
  3. #define SMPBOOT_H
  4. struct task_struct;
  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. int smpboot_create_threads(unsigned int cpu);
  15. int smpboot_park_threads(unsigned int cpu);
  16. int smpboot_unpark_threads(unsigned int cpu);
  17. void __init cpuhp_threads_init(void);
  18. #endif