Blame view
kernel/smpboot.h
640 Bytes
b24413180
|
1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
38498a67a
|
2 3 |
#ifndef SMPBOOT_H #define SMPBOOT_H |
29d5e0476
|
4 |
struct task_struct; |
29d5e0476
|
5 6 7 |
#ifdef CONFIG_GENERIC_SMP_IDLE_THREAD struct task_struct *idle_thread_get(unsigned int cpu); void idle_thread_set_boot_cpu(void); |
3bb5d2ee3
|
8 |
void idle_threads_init(void); |
29d5e0476
|
9 10 11 |
#else static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; } static inline void idle_thread_set_boot_cpu(void) { } |
43a18b1e5
|
12 |
static inline void idle_threads_init(void) { } |
29d5e0476
|
13 |
#endif |
f97f8f06a
|
14 |
int smpboot_create_threads(unsigned int cpu); |
931ef1633
|
15 16 |
int smpboot_park_threads(unsigned int cpu); int smpboot_unpark_threads(unsigned int cpu); |
f97f8f06a
|
17 |
|
4cb28ced2
|
18 |
void __init cpuhp_threads_init(void); |
38498a67a
|
19 |
#endif |