1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 #ifndef SMPBOOT_H 1 #ifndef SMPBOOT_H 3 #define SMPBOOT_H 2 #define SMPBOOT_H 4 3 5 struct task_struct; 4 struct task_struct; 6 5 7 #ifdef CONFIG_GENERIC_SMP_IDLE_THREAD 6 #ifdef CONFIG_GENERIC_SMP_IDLE_THREAD 8 struct task_struct *idle_thread_get(unsigned i 7 struct task_struct *idle_thread_get(unsigned int cpu); 9 void idle_thread_set_boot_cpu(void); 8 void idle_thread_set_boot_cpu(void); 10 void idle_threads_init(void); 9 void idle_threads_init(void); 11 #else 10 #else 12 static inline struct task_struct *idle_thread_ 11 static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; } 13 static inline void idle_thread_set_boot_cpu(vo 12 static inline void idle_thread_set_boot_cpu(void) { } 14 static inline void idle_threads_init(void) { } 13 static inline void idle_threads_init(void) { } 15 #endif 14 #endif 16 15 17 int smpboot_create_threads(unsigned int cpu); 16 int smpboot_create_threads(unsigned int cpu); 18 int smpboot_park_threads(unsigned int cpu); 17 int smpboot_park_threads(unsigned int cpu); 19 int smpboot_unpark_threads(unsigned int cpu); 18 int smpboot_unpark_threads(unsigned int cpu); 20 19 21 void __init cpuhp_threads_init(void); 20 void __init cpuhp_threads_init(void); 22 21 23 #endif 22 #endif 24 23
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.