Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef SMPBOOT_H
0003 #define SMPBOOT_H
0004 
0005 struct task_struct;
0006 
0007 #ifdef CONFIG_GENERIC_SMP_IDLE_THREAD
0008 struct task_struct *idle_thread_get(unsigned int cpu);
0009 void idle_thread_set_boot_cpu(void);
0010 void idle_threads_init(void);
0011 #else
0012 static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; }
0013 static inline void idle_thread_set_boot_cpu(void) { }
0014 static inline void idle_threads_init(void) { }
0015 #endif
0016 
0017 int smpboot_create_threads(unsigned int cpu);
0018 int smpboot_park_threads(unsigned int cpu);
0019 int smpboot_unpark_threads(unsigned int cpu);
0020 
0021 void __init cpuhp_threads_init(void);
0022 
0023 #endif