Linux 5.6.13
[linux/fpc-iii.git] / kernel / smpboot.h
blob34dd3d7ba40bc0a5e3a11d7cf5cea4a641f030ad
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef SMPBOOT_H
3 #define SMPBOOT_H
5 struct task_struct;
7 #ifdef CONFIG_GENERIC_SMP_IDLE_THREAD
8 struct task_struct *idle_thread_get(unsigned int cpu);
9 void idle_thread_set_boot_cpu(void);
10 void idle_threads_init(void);
11 #else
12 static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; }
13 static inline void idle_thread_set_boot_cpu(void) { }
14 static inline void idle_threads_init(void) { }
15 #endif
17 int smpboot_create_threads(unsigned int cpu);
18 int smpboot_park_threads(unsigned int cpu);
19 int smpboot_unpark_threads(unsigned int cpu);
21 void __init cpuhp_threads_init(void);
23 #endif