xref: /linux/arch/um/include/shared/smp.h (revision b61104e7a6349bd2c2b3e2fb3260d87f15eda8f4)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __UM_SHARED_SMP_H
3 #define __UM_SHARED_SMP_H
4 
5 #if IS_ENABLED(CONFIG_SMP)
6 
7 extern int uml_ncpus;
8 
9 int uml_curr_cpu(void);
10 void uml_start_secondary(void *opaque);
11 void uml_ipi_handler(int vector);
12 
13 #else /* !CONFIG_SMP */
14 
15 #define uml_ncpus 1
16 #define uml_curr_cpu() 0
17 
18 #endif /* CONFIG_SMP */
19 
20 #endif /* __UM_SHARED_SMP_H */
21