1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 238498a67SThomas Gleixner #ifndef SMPBOOT_H 338498a67SThomas Gleixner #define SMPBOOT_H 438498a67SThomas Gleixner 529d5e047SThomas Gleixner struct task_struct; 629d5e047SThomas Gleixner 729d5e047SThomas Gleixner #ifdef CONFIG_GENERIC_SMP_IDLE_THREAD 829d5e047SThomas Gleixner struct task_struct *idle_thread_get(unsigned int cpu); 929d5e047SThomas Gleixner void idle_thread_set_boot_cpu(void); 103bb5d2eeSSuresh Siddha void idle_threads_init(void); 1129d5e047SThomas Gleixner #else idle_thread_get(unsigned int cpu)1229d5e047SThomas Gleixnerstatic inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; } idle_thread_set_boot_cpu(void)1329d5e047SThomas Gleixnerstatic inline void idle_thread_set_boot_cpu(void) { } idle_threads_init(void)1443a18b1eSThomas Gleixnerstatic inline void idle_threads_init(void) { } 1529d5e047SThomas Gleixner #endif 1629d5e047SThomas Gleixner 17f97f8f06SThomas Gleixner int smpboot_create_threads(unsigned int cpu); 18931ef163SThomas Gleixner int smpboot_park_threads(unsigned int cpu); 19931ef163SThomas Gleixner int smpboot_unpark_threads(unsigned int cpu); 20f97f8f06SThomas Gleixner 214cb28cedSThomas Gleixner void __init cpuhp_threads_init(void); 224cb28cedSThomas Gleixner 2338498a67SThomas Gleixner #endif 24