Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/arch/um/include/shared/smp.h
38226 views
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
22